internal Node(Nid nid, ulong dataBid, ulong subnodeBid, IPstReader reader) { Nid = nid; DataBid = dataBid; SubnodeBid = subnodeBid; _reader = reader; }
internal TableContext( Node node, IPstReader reader) { _node = node; _reader = reader; Initialize(); }
internal PropertyContext( Node node, IPstReader reader) { _node = node; _pstReader = reader; Initialize(); }
internal Node(Nid nid, Bid dataBid, Bid subnodeBid, IPstReader reader) { Nid = nid; DataBid = dataBid; SubnodeBid = subnodeBid; _reader = reader; if (SubnodeBid != 0) { _subnodeReader = new SubnodeReader(SubnodeBid, reader); } }
internal TcRow( int rowIndex, TcColumnOffsets offsets, TcColumnDef[] columnDefs, Segment<byte> rowData, Heap heap, Node node, IPstReader reader) { _rowIndex = rowIndex; _offsets = offsets; _columnDefs = columnDefs; _rowData = rowData; _heap = heap; _node = node; _reader = reader; }
public State(Bid initialBid, IPstReader reader) { _reader = reader; var block = _reader.FindBlock(initialBid); if (initialBid.Type == BlockType.External) { _dataTree.Add(new DataTreeItem(0, initialBid)); TotalLength = block.Length; } else if (block.Data[0] == 0x01) // data tree { TotalLength = block.Data.Segment(4, 4).ToUInt32(); long offset = 0; BuildDataTree(block, ref offset); } else { throw new Exception("Invalid block data"); } }
internal Folder(Nid nid, IPstReader reader) { _nid = nid; _pstReader = reader; Initialize(); }
public Heap(Node node, IPstReader reader) { _node = node; _reader = reader; Initialize(); }
internal MessageStore(Nid nid, IPstReader reader) { _nid = nid; _pstReader = reader; Initialize(); }
internal TableContext(Node node, IPstReader reader) { _node = node; _reader = reader; Initialize(); }
internal PropertyContext(Node node, IPstReader reader) { _node = node; _reader = reader; Initialize(); }
public NodeDataStream(Bid bid, IPstReader reader) { _bid = bid; _reader = reader; }
internal Message(Nid nid, IPstReader reader) { _nid = nid; _pstReader = reader; Initialize(); }
internal SubnodeReader(Bid bid, IPstReader reader) { _bid = bid; _reader = reader; }
public static string DecodeString(this IPstReader reader, Segment <byte> encodedString) { var encoding = reader.IsAnsi ? Encoding.UTF8 : Encoding.Unicode; return(encoding.GetString(encodedString.Array, encodedString.Offset, encodedString.Count)); }
internal Folder(Nid nid, IPstReader reader) { _nid = nid; _pstReader = reader; Initialize(); }
internal SubnodeReader(ulong bid, IPstReader reader) { _bid = bid; _reader = reader; }