public static CSerialize WriteStream() { if (s_writeAr == null) { s_writeAr = new CSerialize(SerializeType.write); } else { s_writeAr.ResetStream(SerializeType.write); } return(s_writeAr); }
public static CSerialize ReadStream(byte [] buffer, int nBuffSize) { if (s_readAr == null) { s_readAr = new CSerialize(SerializeType.read, buffer, nBuffSize); } else { s_readAr.ResetStream(SerializeType.read, buffer, nBuffSize); } return(s_readAr); }