protected static void WriteRaw(Stream stream, long value)
{
if (value >= 0 && value <= 9)
{
stream.WriteByte((byte)((int)'0' + (int)value));
}
else if (value < 0 && value >= -9)
{
stream.WriteByte((byte)'-');
stream.WriteByte((byte)((int)'0' - (int)value));
}
else
{
var bytes = Encoding.ASCII.GetBytes(value.ToString());
stream.Write(bytes, 0, bytes.Length);
}
stream.Write(Crlf, 0, 2);
}