Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubyte stringAmount = buffer[propertyOffset];
- char* pBuf = cast(char*)&buffer[propertyOffset + 1];
- string[] strings = new string[stringAmount];
- foreach (i; 0..stringAmount)
- {
- ubyte strSize = *cast(ubyte*)pBuf;
- pBuf++;
- string str = pBuf[0..strSize].idup;
- pBuf += strSize;
- strings[i] = str;
- }
- return strings;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement