Ejemplo n.º 1
0
 private void WriteLong(IRawFile txFile, long value, ref long offset)
 {
     for (int i = LONG_ASCII_LEN - 1; i >= 0; i--)
     {
         var write = (byte)(ASCII_ZERO + value % 10);
         txFile.WriteByte(offset + i, write);
         value /= 10;
     }
 }
Ejemplo n.º 2
0
        public void SetByte(long rowID, byte value)
        {
            var offset = rowID * _sizeBytes;

            _storage.WriteByte(offset, value);
        }
Ejemplo n.º 3
0
 private void WriteByte(byte value, ref long offset)
 {
     _data.WriteByte(offset, value);
     offset += 1;
 }