GetBytes() public static method

public static GetBytes ( bool value ) : byte[]
value bool
return byte[]
Exemplo n.º 1
0
 private static void AppendULongToBuffer(ulong data, ref byte[] buffer, ref int index)
 {
     Buffer.BlockCopy(EndianBitConverter.GetBytes(data),
                      0,
                      buffer,
                      index,
                      8);
     index += 8;
 }
Exemplo n.º 2
0
 private static void AppendIntToBuffer(int data, ref byte[] buffer, ref int index)
 {
     Buffer.BlockCopy(EndianBitConverter.GetBytes(data),
                      0,
                      buffer,
                      index,
                      4);
     index += 4;
 }