// Fast-Path implementation internal static int WriteAscii(AbstractByteBuffer buffer, int writerIndex, ICharSequence seq, int len) { // We can use the _set methods as these not need to do any index checks and reference checks. // This is possible as we called ensureWritable(...) before. for (int i = 0; i < len; i++) { buffer._SetByte(writerIndex++, AsciiString.CharToByte(seq[i])); } return(len); }