Skip to content

v1.1.7

Choose a tag to compare

@deneonet deneonet released this 28 Feb 19:08
· 1 commit to main since this release

Changes:

  • Renamed UnmarshalBytes to UnmarshalBytesCropped
  • Added UnmarshalBytesCopied:
    From Docs: UnmarshalBytesCopied returns a new allocated slice with a copy of the marshalled byte slice inside b. It's slower than UnmarshalBytesCropped, but modifications to b won't affect the returned byte slice
  • BencGen: Added a new type attribute rcopy. It can be used before a bytes type field to use UnmarshalBytesCopied. https://github.com/deneonet/benc/blob/main/cmd/bencgen/README.md#type-attributes

--- Thanks to mxmauro (#11) for this suggestion!