public static ulong ToValue(byte[] table, int index) { UnionULong bt = new UnionULong(); bt.SetBytes(table, index); return(bt.value); }
public static byte[] ToBytes(ulong val) { UnionULong bt = new UnionULong(); bt.value = val; return(bt.bytes); }
public static byte[] ToBytes(ulong val) { return(UnionULong.ToBytes(val)); }
public static int ToValue(out ulong ret, byte[] bytes, int index) { ret = UnionULong.ToValue(bytes, index); return(UnionULong.Size); }