This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct BitInputStream : INetworkStream | |
{ | |
public uint Length { get; } | |
private int SizeBytes => _currentByteIndex * sizeof(byte); | |
private readonly unsafe byte* _buffer; | |
private int _currentByteIndex; | |
public unsafe BitInputStream(byte[] buffer) |