write static method

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

Implementation

static int write(bool value, Uint8List buf) {
  buf.setAll(0, [value ? 1 : 0]);
  return allocationSize();
}