コード例 #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);
        }
コード例 #2
0
ファイル: MetadataIndex.cs プロジェクト: waqashaneef/NosDB
        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);
        }