Lines Matching refs:buffer
248 BString buffer;
253 buffer << B_TRANSLATE_COMMENT("Unnamed %d",
256 buffer.ReplaceFirst("%d", number);
257 name = buffer.String();
456 const uint8* buffer = (const uint8*)newBootLoader.Buffer();
457 status_t status = _WriteBlocks(fd, buffer, newBootLoader.Position());
476 uint8* buffer = new(std::nothrow) uint8[size];
477 if (buffer == NULL) {
482 status_t status = _ReadBlocks(fd, buffer, size);
485 delete[] buffer;
489 MasterBootRecord* mbr = (MasterBootRecord*)buffer;
492 delete[] buffer;
496 if (file->Write(buffer, size) != size)
498 delete[] buffer;
528 uint8* buffer = new(std::nothrow) uint8[size];
529 if (buffer == NULL) {
534 if (file->Read(buffer, size) != (ssize_t)size) {
536 delete[] buffer;
540 MasterBootRecord* newMBR = (MasterBootRecord*)buffer;
543 delete[] buffer;
549 status_t status = _WriteBlocks(fd, buffer, size);
550 delete[] buffer;
568 char* buffer = displayText.LockBuffer(bufferLength + 1);
572 buffer, &bufferLength, &state) != B_OK) {
578 buffer[bufferLength] = '\0';
591 char* buffer = biosText.LockBuffer(biosTextLength + 1);
592 if (buffer == NULL) {
599 buffer, &biosTextLength, &state) != B_OK) {
604 buffer[biosTextLength] = '\0';
624 LegacyBootMenu::_ReadBlocks(int fd, uint8* buffer, size_t size)
627 fprintf(stderr, "_ReadBlocks buffer size must be a multiple of %d\n",
632 uint8* block = buffer;
642 LegacyBootMenu::_WriteBlocks(int fd, const uint8* buffer, size_t size)
645 fprintf(stderr, "_WriteBlocks buffer size must be a multiple of %d\n",
650 const uint8* block = buffer;