Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing Java's ByteBuffer.allocate #3

Open
Brhsoftco opened this issue Jul 7, 2022 · 1 comment
Open

Implementing Java's ByteBuffer.allocate #3

Brhsoftco opened this issue Jul 7, 2022 · 1 comment

Comments

@Brhsoftco
Copy link

I am porting a Java program which utilises a UTF-8 string conversion to a byte array. It then allocates a byte buffer with a fixed value of 16, before writing each UTF-8 integer representation into the buffer.

How could I reimplement this using this library? It seems the function call to allocate() is missing...

@Ne-Lexa
Copy link
Owner

Ne-Lexa commented Oct 3, 2022

@Brhsoftco You don't need to allocate memory in PHP. This will be done automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants