writeint static method

void writeint(
  1. EventSink<List<int>> out,
  2. int val
)

Push an Int16 in the header

Implementation

static void writeint(EventSink<List<int>> out, int val) async {
  out.add([val >> 0, val >> 8]);
}