write static method

int write(
  1. TopicAction value,
  2. Uint8List buf
)

Implementation

static int write(TopicAction value, Uint8List buf) {
  buf.buffer.asByteData(buf.offsetInBytes).setInt32(0, value.index + 1);
  return 4;
}