mirror of
https://codeberg.org/icewind/bitbuffer.git
synced 2026-06-03 16:44:06 +02:00
struct bench
This commit is contained in:
parent
92d23dc14f
commit
4785f80cce
2 changed files with 27 additions and 5 deletions
|
|
@ -133,9 +133,9 @@ where
|
|||
where
|
||||
T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt,
|
||||
{
|
||||
let result = self.buffer.read_int(self.pos, count);
|
||||
self.pos += count;
|
||||
|
||||
self.buffer.read_int(self.pos, count)
|
||||
result
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
@ -143,9 +143,9 @@ where
|
|||
where
|
||||
T: PrimInt + BitOrAssign + IsSigned + UncheckedPrimitiveInt,
|
||||
{
|
||||
let result = self.buffer.read_int_unchecked(self.pos, count);
|
||||
self.pos += count;
|
||||
|
||||
self.buffer.read_int_unchecked(self.pos, count)
|
||||
result
|
||||
}
|
||||
|
||||
/// Read a sequence of bits from the stream as float
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue