Searched refs:fBuffer (Results 1 - 25 of 193) sorted by relevance

12345678

/haiku/src/tools/fs_shell/
H A DKPath.cpp23 fBuffer(NULL),
34 fBuffer(NULL),
45 fBuffer(NULL),
56 free(fBuffer);
67 if (fBuffer && fBufferSize != bufferSize) {
68 free(fBuffer);
69 fBuffer = NULL;
76 if (!fBuffer)
77 fBuffer = (char*)malloc(bufferSize);
78 if (!fBuffer)
[all...]
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A DKPath.cpp27 fBuffer(NULL),
41 fBuffer(NULL),
55 fBuffer(NULL),
69 free(fBuffer);
80 if (fBuffer != NULL && fBufferSize != bufferSize) {
81 free(fBuffer);
82 fBuffer = NULL;
105 free(fBuffer);
107 fBuffer = other.fBuffer;
[all...]
/haiku/src/apps/mediaplayer/media_node_framework/audio/
H A DSampleBuffer.h28 : fBuffer((sample_block_t*)buffer) { }
31 fBuffer += samples;
34 fBuffer -= samples;
38 fBuffer++;
41 fBuffer--;
45 return fBuffer + samples;
48 return fBuffer + samples;
52 sample_block_t* fBuffer; member in class:SampleBuffer
66 return *((float*)fBuffer);
70 *((float*)fBuffer)
[all...]
/haiku/headers/private/app/
H A DSimpleMallocIO.h23 fBuffer = (char *)malloc(size);
28 free(fBuffer);
33 memcpy(buffer, fBuffer, fSize);
38 memcpy(buffer, fBuffer, size);
43 memcpy(buffer, fBuffer + pos, size);
48 memcpy(fBuffer, buffer, fSize);
53 memcpy(fBuffer, buffer, size);
58 memcpy(fBuffer + pos, buffer, size);
63 fBuffer = (char *)realloc(fBuffer, siz
82 char *fBuffer; member in class:BPrivate::BSimpleMallocIO
[all...]
/haiku/src/system/kernel/fs/
H A DKPath.cpp33 fBuffer(NULL),
47 fBuffer(NULL),
61 fBuffer(NULL),
86 if (fBuffer != NULL && fBufferSize != bufferSize) {
112 fBuffer = other.fBuffer;
119 other.fBuffer = NULL;
131 if (fBuffer != NULL || (fLazy && !fFailed && fBufferSize != 0))
147 if (path == NULL && fLazy && fBuffer == NULL) {
152 if (fBuffer
[all...]
/haiku/src/tests/system/kernel/unit/
H A DTestOutput.cpp46 int bytes = vsnprintf(fBuffer, sizeof(fBuffer), format, args);
47 dprintf("%s", fBuffer);
/haiku/src/apps/activitymonitor/
H A DCircularBuffer.h20 fBuffer(NULL)
27 free(fBuffer);
32 return fBuffer != NULL ? B_OK : B_NO_MEMORY;
43 fBuffer = (Type*)malloc(fSize * sizeof(Type));
44 if (fBuffer == NULL) {
70 if (index >= (int32)fIn || index < 0 || fBuffer == NULL)
73 return &fBuffer[(fFirst + index) % fSize];
84 if (fBuffer != NULL)
85 fBuffer[index % fSize] = item;
97 Type* fBuffer; member in class:CircularBuffer
[all...]
/haiku/src/servers/app/drawing/
H A DMallocBuffer.cpp15 : fBuffer(NULL),
20 fBuffer = malloc((fWidth * 4) * fHeight);
27 if (fBuffer)
28 free(fBuffer);
35 return fBuffer ? B_OK : B_NO_MEMORY;
50 return fBuffer;
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DPath.cpp12 : fBuffer(NULL),
21 free(fBuffer);
52 memcpy(fBuffer, path, len);
56 fBuffer[len++] = '/';
60 memcpy(fBuffer + len, leaf, leafLen);
63 fBuffer[wholeLen] = '\0';
84 bool insertSeparator = (fBuffer[fLength - 1] != '/' && leaf[0] != '/');
94 fBuffer[fLength++] = '/';
98 memcpy(fBuffer + fLength, leaf, leafLen + 1);
108 return (fLength == 0 ? NULL : fBuffer);
[all...]
/haiku/src/add-ons/media/media-add-ons/dvb/
H A DPacket.cpp42 : fBuffer(malloc(init_size))
54 fBuffer = malloc(fBufferSize);
56 memcpy(fBuffer, clone.Data(), fBufferSize);
61 : fBuffer(malloc(size))
66 memcpy(fBuffer, data, size);
72 free(fBuffer);
81 fBuffer = realloc(fBuffer, fBufferSizeMax);
84 memcpy((char *)fBuffer + fBufferSize, data, size);
/haiku/src/libs/icon/flat_icon/
H A DLittleEndianBuffer.cpp27 : fBuffer((uint8*)malloc(CHUNK_SIZE)),
28 fHandle(fBuffer),
29 fBufferEnd(fBuffer + CHUNK_SIZE),
37 : fBuffer((uint8*)malloc(size)),
38 fHandle(fBuffer),
39 fBufferEnd(fBuffer + size),
47 : fBuffer(buffer),
48 fHandle(fBuffer),
49 fBufferEnd(fBuffer + size),
59 free(fBuffer);
[all...]
/haiku/src/kits/package/hpkg/
H A DPoolBuffer.cpp22 fBuffer(malloc(size)),
31 free(fBuffer);
/haiku/src/add-ons/kernel/file_systems/nfs/
H A DXDROutPacket.c10 return packet->fBuffer;
22 packet->fBuffer=NULL;
29 free (packet->fBuffer);
40 packet->fBuffer=(uint8 *)realloc(packet->fBuffer,packet->fSize);
48 *(int32 *)(&packet->fBuffer[packet->fLength])=B_HOST_TO_BENDIAN_INT32(val);
64 memcpy (&packet->fBuffer[packet->fLength],data,size);
65 memset (&packet->fBuffer[packet->fLength+size],0,roundedSize-size);
79 memcpy (&me->fBuffer[me->fLength],packet->fBuffer,packe
[all...]
H A DXDRInPacket.c9 packet->fBuffer=NULL;
16 free (packet->fBuffer);
22 int32 val=B_BENDIAN_TO_HOST_INT32(*((int32 *)&packet->fBuffer[packet->fOffset]));
32 memcpy (buffer,&packet->fBuffer[packet->fOffset],len);
59 free (packet->fBuffer);
60 packet->fBuffer=buffer;
/haiku/src/kits/network/libnetapi/
H A DDynamicBuffer.cpp22 fBuffer(NULL),
28 fBuffer = new (std::nothrow) unsigned char[initialSize];
29 if (fBuffer != NULL) {
38 delete[] fBuffer;
46 fBuffer(NULL),
56 memcpy(fBuffer, buffer.fBuffer, fBufferSize);
82 memcpy(fBuffer + fDataEnd, data, size);
99 memcpy(data, fBuffer + fDataStart, size);
112 return fBuffer
[all...]
/haiku/headers/private/package/hpkg/
H A DPoolBuffer.h29 void* Buffer() const { return fBuffer; }
43 void* fBuffer; member in class:BPackageKit::BHPKG::BPrivate::PoolBuffer
55 fBuffer(NULL)
63 fBuffer(buffer)
72 else if (fBuffer != NULL)
73 fPool->PutBuffer(&fBuffer);
80 PoolBuffer* fBuffer; member in class:BPackageKit::BHPKG::BPrivate::PoolBufferPutter
/haiku/src/add-ons/translators/shared/
H A DStreamBuffer.cpp44 fBuffer = NULL;
54 fBuffer = new uint8[fBufferSize];
73 fStream->Write(fBuffer, fLen);
74 delete[] fBuffer;
75 fBuffer = NULL;
95 if (fStream && fBuffer)
130 memcpy(pinto, fBuffer + fPos, totalRead);
141 memcpy(pinto, fBuffer + fPos, left);
168 memcpy(fBuffer + fLen, pinto, nbytes);
172 fStream->Write(fBuffer, fLe
[all...]
/haiku/headers/private/interface/
H A DTextViewSupportBuffer.h33 T* fBuffer; member in class:_BTextViewSupportBuffer_
43 fBuffer(NULL)
45 fBuffer = (T*)calloc(fExtraCount + fItemCount, sizeof(T));
52 free(fBuffer);
72 fBuffer = (T*)realloc((void*)fBuffer, fBufferCount);
73 if (fBuffer == NULL)
77 T* loc = fBuffer + inAtIndex;
97 T* loc = fBuffer + inAtIndex;
106 fBuffer
[all...]
/haiku/src/apps/terminal/
H A DTermParse.cpp71 fBuffer->CaptureChar(fParserBuffer[fParserBufferOffset]);
89 fBuffer(NULL),
106 if (fBuffer != NULL)
110 fBuffer = buffer;
114 fBuffer = NULL;
121 fBuffer = NULL;
132 if (fBuffer == NULL)
140 fBuffer = NULL;
256 fBuffer->NotifyQuit(errno);
391 BAutolock locker(fBuffer);
[all...]
/haiku/src/tests/add-ons/print/ppd/parser/
H A DPPDFile.cpp17 fSize = fFile->Read(fBuffer, kReadBufferSize);
23 return (int)fBuffer[fIndex ++];
32 , fBuffer(&fFile)
52 fCurrentChar = fBuffer.Read();
/haiku/headers/private/net/
H A DNetBufferUtilities.h27 fBuffer(buffer)
29 fStatus = Module::Get()->direct_access(fBuffer, Offset, sizeof(Type),
32 fStatus = Module::Get()->read(fBuffer, Offset, &fDataBuffer,
60 if (fBuffer == NULL || fStatus < B_OK)
64 Module::Get()->write(fBuffer, Offset, fData, sizeof(Type));
66 fBuffer = NULL;
74 net_buffer* fBuffer; member in class:NetBufferFieldReader
116 if (this->fBuffer != NULL) {
117 Module::Get()->remove_header(this->fBuffer, bytes);
118 this->fBuffer
[all...]
/haiku/src/system/kernel/disk_device_manager/
H A DUserDataWriter.cpp18 : fBuffer(NULL),
28 : fBuffer(NULL),
47 fBuffer = buffer;
50 if (fBuffer && fBufferSize > 0) {
63 fBuffer = NULL;
80 if (fBuffer && offset + size <= fBufferSize)
81 result = (uint8*)fBuffer + offset;
131 if (fRelocationEntries && (addr)address >= (addr)fBuffer
132 && (addr)address < (addr)fBuffer + fBufferSize - sizeof(void*)) {
142 if (!fRelocationEntries || !fBuffer)
[all...]
/haiku/src/apps/mediaplayer/support/
H A DFileReadWrite.cpp53 fAmtRead = fFile->Read(&fBuffer, sizeof(fBuffer));
59 if (fBuffer[fPositionInBuffer] == '\n') {
73 string += fBuffer[fPositionInBuffer];
78 fAmtRead = fFile->Read(&fBuffer, sizeof(fBuffer));
/haiku/src/system/libroot/os/
H A DPathBuffer.h19 fBuffer(NULL),
32 fBuffer = buffer;
36 fBuffer[fLength] = '\0';
43 memcpy(fBuffer + fLength, toAppend, toCopy);
44 fBuffer[fLength + toCopy] = '\0';
67 char* fBuffer; member in struct:__anon3::PathBuffer
/haiku/src/kits/media/experimental/
H A DAdapterIO.cpp28 fBuffer(buffer),
35 delete fBuffer;
40 status_t ret = fBuffer->SetSize(0);
101 return fBuffer->ReadAt(
111 return fBuffer->WriteAt(
119 return fBuffer->Seek(_PositionToRelative(position), seekMode);
126 return _RelativeToPosition(fBuffer->Position());
133 return fBuffer->SetSize(_PositionToRelative(size));
151 off_t ret = fBuffer->WriteAt(fBackPosition, buffer, size);
158 delete fBuffer;
199 BPositionIO* fBuffer; member in class:RelativePositionIO
[all...]

Completed in 284 milliseconds

12345678