writeNullTerminatedList method

void writeNullTerminatedList(
  1. List<int> list
)

Writes a null terminated list of ints from the buffer. The given list should not contain the terminating zero.

Implementation

void writeNullTerminatedList(List<int> list) {
  writeList(list);
  writeByte(0);
}