示例#1
0
        public void Write(string value, Charset charset)
        {
            var count = charset.GetBytesCount(value);

            Write(count);
            var buff = InternalGetBuffer(count);

            charset.GetBytes(value, 0, value.Length, buff, 0);
            Write(buff, 0, count);
            WritePadding(count);
        }