reverseByteString
scrypt-ts-opcat / reverseByteString
Function: reverseByteString()
reverseByteString(
b
,size
):ByteString
Defined in: packages/scrypt-ts-opcat/src/smart-contract/fns/byteString.ts:105
Returns reversed bytes of b, which is of size bytes. Note size must be a compiled-time constant. It is often useful when converting a number between little-endian and big-endian.
Parameters
b
a ByteString to be reversed
size
the size of the ByteString.
Returns
reversed ByteString.