writeBoolean method

void writeBoolean(
  1. bool v
)

Writes a byte containg 0 if v is false, and 1 if it is true.

Implementation

void writeBoolean(bool v) {
  writeByte(v ? 1 : 0);
}