toBytes method

List<int> toBytes([
  1. Endian endian = Endian.big
])

Get the key index as bytes.

Implementation

List<int> toBytes([Endian endian = Endian.big]) {
  return IntUtils.toBytes(index, length: fixedLength(), byteOrder: endian);
}