Skip to content

serialize 1.17.0: ReadStream::InitializePadded for exact-sized payloads

Choose a tag to compare

@rowan-claude rowan-claude released this 08 Sep 16:18
56a1b59

What you get

  • ReadStream::InitializePadded for an exact-sized payload. A buffer with no eight bytes of slack past the data is copied into a destination you supply and read from there, with the slack zeroed. A destination smaller than the payload plus eight is refused in every build and nothing is copied. The destination must outlive the stream. Initialize is unchanged for buffers that already carry the slack.
  • ReadBytes copies through SERIALIZE_BULK_COPY, as WriteBytes already did, so a fortified libc sees the builtin rather than a checked memcpy. The eight-byte read window is unchanged.
  • The README has an Installing section: brew install serialize and find_package(serialize CONFIG), or copy the header.

No wire change. Nothing else in the API moved.