int bufWrChars(Buffer buf, int cc, String s) { bufPutChars(buf, s, cc); return cc; }
int bufWrChars(Buffer buf, int cc, String s) { bufPutChars(buf, strnToAsciiStatic(s,cc), cc); return cc; }
int bufWrBuffer(Buffer buf, Buffer b) { int cc = bufPosition(b); bufPutSInt(buf, cc); bufPutChars(buf, bufChars(b), cc); return SINT_BYTES + cc; }
int bufWrString(Buffer buf, String s) { int cc = strLength(s) + 1; bufPutSInt(buf, cc); bufPutChars(buf, s, cc); return SINT_BYTES + cc; }