1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 16:44:06 +02:00
bitbuffer/src
Robin Appelman 383376f5f0 remove extra bounds check in stream
this is done by
 - making the buffer cloneable
 - allow getting a clone of the buffer with a shorter length
 - use the shorter buffer when reading a sub-stream

that way the bounds checks in the buffer are enough to bounds check sub-streams
2019-03-03 14:06:17 +01:00
..
buffer.rs remove extra bounds check in stream 2019-03-03 14:06:17 +01:00
endianness.rs implement Debug 2019-02-28 22:34:06 +01:00
is_signed.rs rename read -> read_int 2019-02-27 12:17:56 +01:00
lib.rs use unchecked type conversions 2019-03-03 01:42:56 +01:00
read.rs impl ReadSized for Option<T> 2019-02-28 22:23:11 +01:00
stream.rs remove extra bounds check in stream 2019-03-03 14:06:17 +01:00
unchecked_primitive.rs use unchecked type conversions 2019-03-03 01:42:56 +01:00