writeInt static method

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

Push an int32 in the header

Implementation

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