public virtual int GetInt() { var result = buffer.GetInt(index + offset); index += Bits.IntSizeInBytes; return(result); }
public virtual byte[] GetByteArray() { var length = Buffer.GetInt(_index + _offset); _index += Bits.IntSizeInBytes; var result = new byte[length]; Buffer.GetBytes(_index + _offset, result); _index += length; return(result); }