// big endian public static void bignumSet(SByteVL b, int index, ushort value) { int x; if ((index & 1) == 0) { x = index + 3; } else { x = index + 1; } b.setUInt16(x, value); }
// little endian public static void bignumSet(SByteVL b, int index, ushort value) { b.setUInt16(index + BIGNUM_DATA_OFFSET, value); }