beet
beet copied to clipboard
offsetOf method on BeetStruct
It would be convenient to have an offsetOf method on BeetStruct
Like on myStruct.offsetOf of the buffer-layout package ( https://github.com/pabigot/buffer-layout/blob/main/lib/Layout.js#L1323 )
I'll see if I can do a PR
Here is a PR: #44
That's a great suggestion! The offsetOf method would definitely be a useful addition to the BeetStruct struct. If you're interested in contributing to the project, I would recommend opening an issue on the project's GitHub repository to discuss the idea with the maintainers and get their feedback. Once you have their approval, you can create a pull request with your implementation. Good luck!