Skip to content

fix ByteBuffer example in README#124

Open
naresh97 wants to merge 1 commit intoCysharp:mainfrom
naresh97:main
Open

fix ByteBuffer example in README#124
naresh97 wants to merge 1 commit intoCysharp:mainfrom
naresh97:main

Conversation

@naresh97
Copy link

in the example, the ByteBuffer tracks the length & capacity of the allocated vector in bytes.

in order to reproduce the original Vec of the correct size, the length in bytes should be divided by element_size

in the example, the ByteBuffer tracks the length & capacity of the allocated vector in bytes.

in order to reproduce the original Vec of the correct size, the length in bytes should be divided by element_size
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

Successfully merging this pull request may close these issues.

1 participant