Skip to content

Instantly share code, notes, and snippets.

View AGeorgy's full-sized avatar

George Ananchenko AGeorgy

View GitHub Profile
@AGeorgy
AGeorgy / BitInputStream.cs
Created July 9, 2019 09:28
CustomeSerialization
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)