public DataReader(byte[] buffer, int offset, int length) { refContext = new RefrenceCollection(); _doc = new PacketDocument(); _doc.Load(buffer, offset, length); _cur = _doc; }
internal PacketNode(PacketDocument doc) { if (this is PacketDocument) { this.doc = this as PacketDocument; } else { this.doc = doc; } _packet = new Packet(); _context = new PackectContext(this); this.nodeType = NodeType.Node; this.context.valueType = NodeValueType.None; }
internal PacketElement(PacketDocument doc) : base(doc) { this.nodeType = NodeType.Element; this.context.valueType = NodeValueType.ComplexType; }
public DataWriter() { _doc = new PacketDocument(); _cur = _doc; refContext = new RefrenceCollection(); }