Exemplo n.º 1
0
        protected override byte[] GetSerializedMetadata(string key, long rowId)
        {
            var bytes = new byte[16];

            SerializationUtility.PutInt64(bytes, 0, rowId);
            SerializationUtility.PutInt64(bytes, 8, _rowToFileIndex[rowId]);
            return(bytes);
        }
Exemplo n.º 2
0
        protected virtual byte[] GetSerializedMetadata(string key, long rowId)
        {
            var stringBytes = Encoding.UTF8.GetBytes(key);
            var bytes       = new byte[stringBytes.Length + 8];

            SerializationUtility.PutInt64(bytes, 0, _rowToFileIndex[rowId]);
            stringBytes.CopyTo(bytes, 8);
            return(bytes);
        }