toBytes method

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

Get the depth as bytes.

Implementation

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