The data is moved from the original block to the new block, and the new block is returned to the caller.
把数据从原来的块转移到新的块中,把新的块返回给调用者。
A new block of the requested size is then allocated, the data is moved from the original block to the new block, and the new block is returned to the caller.
然后,按请求的大小分配一个新的块。把数据从原来的块转移到新的块中,把新的块返回给调用者。
If the size of the reallocated block is smaller than the original block, the block is split and the extra block is returned to the free tree with the required size block being returned to the caller.
如果重新分配的块小于原来的块,那么把它分割开,多余的块返回给空闲树,请求的块返回给调用者。
If the size of the reallocated block is smaller than the original block, the block is split and the extra block is returned to the free tree with the required size block being returned to the caller.
如果重新分配的块小于原来的块,那么把它分割开,多余的块返回给空闲树,请求的块返回给调用者。
应用推荐