GetBytes() public static method

public static GetBytes ( bool value ) : byte[]
value bool
return byte[]
Beispiel #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;
 }
Beispiel #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;
 }