Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Strom
on Nov 6, 2019
|
parent
|
context
|
favorite
| on:
Base64 encoding and decoding at almost the speed o...
Practically it's easy too. Here's a piece of pseudocode I just wrote:
chunkOffset = byteIndex/3*4 base64decode(base64data[chunkOffset:chunkOffset+4])[byteIndex%3]
This gets you the byte located at an arbitrary index of the original buffer while operating on the base64 data.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: