Lines Matching refs:buffer
51 char *buffer = (char *)malloc(4096);
52 if (buffer == NULL)
56 if (get_root_block(fDevice, buffer, blockSize, partition->size) != B_OK) {
61 if (get_root_block(fDevice, buffer, size, partition->size) == B_OK) {
66 free(buffer);
72 char *newBuffer = (char *)realloc(buffer, blockSize);
73 // if reallocation fails, we keep the old buffer
75 buffer = newBuffer;
77 fRootNode.SetTo(buffer, blockSize);
79 // fRoot will free the buffer for us upon destruction