public static byte[] EncodeInt128(BigInteger value) { var result = Int128Helper.GetBytes(value); if (BitConverter.IsLittleEndian) { Array.Reverse(result); } return(result); }