public int Transfer(T source, Addressable destination, long index) { if (nullable.IsNull(source)) { destination.Set(index, 0); return(1); } destination.Set(index, 1); return(inner.Transfer(source, destination, index + 1) + 1); }
public static void WriteInt64(this Addressable addressable, long index, Int64 value) { for (int i = 7; i >= 0; i--) { addressable.Set(index + i, (byte)(value & 0xff)); value = value >> 8; } }
public int Transfer(Item source, Addressable destination, long index) { for (int i = 0; i < value; i++) { destination.Set(index + i, (byte)(source.Value * value)); } return(value); }
public void Set(long index, byte value) { target.Set(index + position, value); }