Home
last modified time | relevance | path

Searched refs:circularBuf (Results 1 – 1 of 1) sorted by relevance

/external/lz4/programs/
Dlz4io.c427 char* circularBuf; in LZ4IO_createDict() local
433 circularBuf = (char *) malloc(circularBufSize); in LZ4IO_createDict()
434 if (!circularBuf) EXM_THROW(25, "Allocation error : not enough memory"); in LZ4IO_createDict()
446 readSize = fread(circularBuf + dictEnd, 1, circularBufSize - dictEnd, dictFile); in LZ4IO_createDict()
461 dictBuf = circularBuf; in LZ4IO_createDict()
462 circularBuf = NULL; in LZ4IO_createDict()
468 memcpy(dictBuf, circularBuf + dictStart, circularBufSize - dictStart); in LZ4IO_createDict()
469 …memcpy(dictBuf + circularBufSize - dictStart, circularBuf, dictLen - (circularBufSize - dictStart)… in LZ4IO_createDict()
473 free(circularBuf); in LZ4IO_createDict()