public HPacketReader(IHFormat format, ReadOnlySpan <byte> source) { _format = format; _source = source; if (!format.TryReadHeader(source, out int length, out short id, out int bytesRead)) { // TODO: Throw exception? } _position = bytesRead; Id = id; Length = length; }