writeCharCode method

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

Writes the charCode to this.

This method is equivalent to write(new String.fromCharCode(charCode)).

Implementation

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