Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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;
     }
 }
Exemplo n.º 3
0
            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);
            }
Exemplo n.º 4
0
 public void Set(long index, byte value)
 {
     target.Set(index + position, value);
 }