writeCharCode method

  1. @override
void writeCharCode(
  1. int charCode
)
override

Writes the character represented by charCode.

Equivalent to write(String.fromCharCode(charCode)).

Implementation

@override
void writeCharCode(int charCode) {
  if (!isOpen && isBuffered) {
    throw closed();
  } else if (!isBuffered) {
    add([charCode]);
  } else {
    buffer.addByte(charCode);
  }
}