toBinary static method

String toBinary(
  1. List<int> dataBytes, {
  2. int zeroPadBitLen = 0,
})

Converts a list of bytes to a binary string representation.

Converts the input list of bytes to a binary string, optionally adding leading zeros to ensure a specific bit length.

Implementation

static String toBinary(List<int> dataBytes, {int zeroPadBitLen = 0}) {
  return BigintUtils.toBinary(
      BigintUtils.fromBytes(dataBytes), zeroPadBitLen);
}