private void AddFreeSlotNodes(int address, int length)
		{
			FreeSlotNode addressNode = new FreeSlotNode(address);
			addressNode.CreatePeer(length);
			_freeByAddress = Tree.Add(_freeByAddress, addressNode);
			AddToFreeBySize(addressNode._peer);
		}
        private void AddFreeSlotNodes(int address, int length)
        {
            FreeSlotNode addressNode = new FreeSlotNode(address);

            addressNode.CreatePeer(length);
            _freeByAddress = Tree.Add(_freeByAddress, addressNode);
            AddToFreeBySize(addressNode._peer);
        }
示例#3
0
        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);
        }
示例#4
0
 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;
 }