Skip to content

Commit 4a91ad0

Browse files
Fixed reading of multiple bits
Fixed reading nibbles Added char write support Added array write support Added array diffing Added array varinting
1 parent a4ece56 commit 4a91ad0

File tree

2 files changed

+1337
-61
lines changed

2 files changed

+1337
-61
lines changed

MLAPI.Tests/NetworkingManagerComponents/Binary/BitStreamTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ public void TestBits()
407407

408408
BitStream inStream = new BitStream(buffer);
409409

410-
//Assert.That(inStream.ReadBits(5), Is.EqualTo(0b10011));
411-
Assert.Fail("There is no way to read back the bits");
410+
Assert.That(inStream.ReadBits(5), Is.EqualTo(0b10011));
411+
//Assert.Fail("There is no way to read back the bits");
412412

413413
}
414414

@@ -424,8 +424,8 @@ public void TestNibble()
424424

425425
BitStream inStream = new BitStream(buffer);
426426

427-
//Assert.That(inStream.ReadNibble(), Is.EqualTo(0b0011));
428-
Assert.Fail("There is no way to read back Nibbles");
427+
Assert.That(inStream.ReadNibble(), Is.EqualTo(0b0011));
428+
//Assert.Fail("There is no way to read back Nibbles");
429429
}
430430

431431
public void TestReadWriteMissaligned()

0 commit comments

Comments
 (0)