encodeTo method

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

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

Implementation

@override
void encodeTo(
  SyncState value,
  Output output,
) {
  numberCodec.encodeTo(
    value.startingBlock,
    output,
  );
  numberCodec.encodeTo(
    value.currentBlock,
    output,
  );
  numberCodec.encodeTo(
    value.highestBlock,
    output,
  );
}