encodeEndian function

List<int> encodeEndian(
  1. int n,
  2. int k,
  3. {dynamic endianType = EndianType.bigEndian}
)

Implementation

List<int> encodeEndian(int n, int k, { endianType = EndianType.bigEndian }) {
  var hexStr = getHexString(n, k);
  var bytes = convertHexString2Bytes(hexStr);

  return convertBytesEndianType(bytes, k, endianType);
}