private void AddFreeSlotNodes(int address, int length) { FreeSlotNode addressNode = new FreeSlotNode(address); addressNode.CreatePeer(length); _freeByAddress = Tree.Add(_freeByAddress, addressNode); AddToFreeBySize(addressNode._peer); }
public override object Read(ByteArrayBuffer buffer) { var size = buffer.ReadInt(); var address = buffer.ReadInt(); if (size > sizeLimit) { var node = new FreeSlotNode (size); node.CreatePeer(address); if (Deploy.debug && Debug4.xbytes) { DebugCheckBuffer(buffer, node); } return(node); } return(null); }
public override object Read(ByteArrayBuffer buffer) { var size = buffer.ReadInt(); var address = buffer.ReadInt(); if (size > sizeLimit) { var node = new FreeSlotNode (size); node.CreatePeer(address); if (Deploy.debug && Debug4.xbytes) { DebugCheckBuffer(buffer, node); } return node; } return null; }