beet icon indicating copy to clipboard operation
beet copied to clipboard

offsetOf method on BeetStruct

Open olivbau opened this issue 3 years ago • 2 comments

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

olivbau avatar Sep 05 '22 09:09 olivbau

Here is a PR: #44

olivbau avatar Sep 05 '22 10:09 olivbau

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!

staccDOTsol avatar Mar 25 '23 22:03 staccDOTsol