Skip to content

Unsized array to EOF #334

Answered by WerWolv
LeoAdamek asked this question in Get Help
Discussion options

You must be logged in to vote

Hi!
There's currently no proper function in the standard library sadly but one way to do it is:

Chunk chunks[while($ < std::mem::size())] @ 0x08;

This will keep on creating more entries in the chunks array until the current offset (denoted with $) is not smaller than the size of the currently loaded data anymore.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LeoAdamek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants