Example #1
0
int
bufWrChars(Buffer buf, int cc, String s)
{
	bufPutChars(buf, s, cc);

	return cc;
}
Example #2
0
int
bufWrChars(Buffer buf, int cc, String s)
{
	bufPutChars(buf, strnToAsciiStatic(s,cc), cc);

	return cc;
}
Example #3
0
int
bufWrBuffer(Buffer buf, Buffer b)
{
	int cc = bufPosition(b);

	bufPutSInt(buf, cc);
	bufPutChars(buf, bufChars(b), cc);

	return SINT_BYTES + cc;
}
Example #4
0
int
bufWrString(Buffer buf, String s)
{
	int cc = strLength(s) + 1;

	bufPutSInt(buf, cc);
	bufPutChars(buf, s, cc);

	return SINT_BYTES + cc;
}