writeCharCode method
Writes the character of charCode
.
This method is equivalent to write(String.fromCharCode(charCode))
.
This operation is non-blocking. See flush or done for how to get any errors generated by this call.
Implementation
@override
void writeCharCode(int charCode) {
_inner.writeCharCode(charCode);
if (headers.contentType != ContentType.binary) {
try {
_sendBuffer?.writeCharCode(charCode);
} catch (ex) {
// log error if required
}
_checkAndResetBufferIfRequired();
}
}