encodeTo method

  1. @override
void encodeTo(
  1. int value,
  2. Output output
)
override

Convert self to a slice and append it to the destination.

Implementation

@override
void encodeTo(int value, Output output) {
  if (value < -2147483648 || value > 2147483647) {
    throw OutOfBoundsException();
  }
  U32Codec.codec.encodeTo(value.toUnsigned(32), output);
}