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

Support asReadOnlyBuffer() #9

Open
niloc132 opened this issue May 15, 2024 · 0 comments
Open

Support asReadOnlyBuffer() #9

niloc132 opened this issue May 15, 2024 · 0 comments

Comments

@niloc132
Copy link
Member

Provide a readonly view into various buffer types. Unlike #8, this should make the entire buffer visible, but will not share byteOrder:

The content of the new buffer will be that of this buffer. Changes to this buffer's content will be visible in the new buffer; the new buffer itself, however, will be read-only and will not allow the shared content to be modified. The two buffers' position, limit, and mark values will be independent.

The new buffer's capacity, limit, position, and mark values will be identical to those of this buffer, and its byte order will be BIG_ENDIAN.

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

1 participant