allocate single block
| 932 | |
| 933 | // allocate single block |
| 934 | static Y_FORCE_INLINE void* LFAllocNoCache(int nSizeIdx, EDefrag defrag) { |
| 935 | int blockSize = nSizeIdxToSize[nSizeIdx]; |
| 936 | void* res = LFAllocFromCurrentChunk(nSizeIdx, blockSize, 1); |
| 937 | if (res) |
| 938 | return res; |
| 939 | |
| 940 | return SlowLFAlloc(nSizeIdx, blockSize, defrag); |
| 941 | } |
| 942 | |
| 943 | // allocate multiple blocks, returns number of blocks allocated (max FL_GROUP_SIZE) |
| 944 | // buf should have space for at least FL_GROUP_SIZE elems |
no test coverage detected