Charset.
Inheritance: FanObj
示例#1
0
文件: FanStr.cs 项目: xored/f4
 public static Buf toBuf(string self, Charset charset)
 {
     MemBuf buf = new MemBuf(self.Length*2);
       buf.charset(charset);
       buf.print(self);
       return buf.flip();
 }
示例#2
0
文件: Buf.cs 项目: nomit007/f4
 public void charset(Charset charset)
 {
     m_out.charset(charset);
       m_in.charset(charset);
 }
示例#3
0
文件: OutStream.cs 项目: nomit007/f4
 public virtual void charset(Charset charset)
 {
     m_charsetEncoder = charset.newEncoder();
       m_charset = charset;
 }
示例#4
0
文件: OutStream.cs 项目: nomit007/f4
 protected OutStream()
 {
     m_charset = Charset.utf8();
       m_charsetEncoder = m_charset.newEncoder();
 }
示例#5
0
文件: Charset.cs 项目: nomit007/f4
 internal DefaultEncoder(Charset charset)
 {
     this.charset = charset;
 }
示例#6
0
文件: Charset.cs 项目: nomit007/f4
 //////////////////////////////////////////////////////////////////////////
 // UTF-8
 //////////////////////////////////////////////////////////////////////////
 public static Charset utf8()
 {
     if (m_utf8 == null) m_utf8 = new Utf8Charset();
       return m_utf8;
 }
示例#7
0
文件: InStream.cs 项目: nomit007/f4
 protected InStream()
 {
     m_charset = Charset.utf8();
       m_charsetDecoder = m_charset.newDecoder();
       m_charsetEncoder = m_charset.newEncoder();
 }