fptr.cbuf.len += (int) len;
ByteList cByteList = ((RubyString) c).getByteList();
System.arraycopy(cByteList.unsafeBytes(), cByteList.begin(), fptr.cbuf.ptr, fptr.cbuf.off, len);
} else {
fptr.NEED_NEWLINE_DECORATOR_ON_READ_CHECK();
fptr.ungetbyte(context, c);
}
} finally {
if (locked) fptr.unlock();
}