Home
last modified time | relevance | path

Searched refs:fBufferSize (Results 1 – 25 of 78) sorted by relevance

1234

/haiku/src/kits/support/
H A DCompressionAlgorithm.cpp113 fBufferSize(0) in BAbstractStream()
164 if (fBufferSize > 0) { in Read()
167 status_t error = ProcessData(fBuffer + fBufferOffset, fBufferSize, in Read()
173 fBufferSize -= bytesConsumed; in Read()
186 if (fBufferSize > 0) { in Read()
187 if (fBufferSize == fBufferCapacity) in Read()
191 memmove(fBuffer, fBuffer + fBufferOffset, fBufferSize); in Read()
197 ssize_t bytesRead = fInput->Read(fBuffer + fBufferSize, in Read()
198 fBufferCapacity - fBufferSize); in Read()
206 fBufferSize += bytesRead; in Read()
[all …]
H A DBufferedDataIO.cpp33 fBufferSize = max_c(bufferSize, 512); in BBufferedDataIO()
34 fBuffer = new(std::nothrow) uint8[fBufferSize]; in BBufferedDataIO()
65 return fBufferSize; in BufferSize()
131 if (size > fBufferSize || fBuffer == NULL) { in Read()
144 fBufferSize); in Read()
145 ssize_t nextRead = fStream.Read(fBuffer, fBufferSize); in Read()
175 if (size > fBufferSize || fBuffer == NULL) { in Write()
193 size_t toCopy = min_c(size, fBufferSize - (fPosition + fSize)); in Write()
202 if ((fPosition + fSize) == fBufferSize) { in Write()
H A DBufferIO.cpp27 fBufferSize = max_c(bufferSize, 512); in BBufferIO()
34 fBuffer = (char*)malloc(fBufferSize); in BBufferIO()
65 if (size > fBufferSize || fBuffer == NULL) { in ReadAt()
82 ssize_t sizeRead = fStream->ReadAt(pos, fBuffer, fBufferSize); in ReadAt()
111 if (size > fBufferSize || fBuffer == NULL) in WriteAt()
128 if (pos + size <= fBufferSize) in WriteAt()
132 read = fStream->ReadAt(where, fBuffer, fBufferSize); in WriteAt()
225 return fBufferSize; in BufferSize()
250 printf("phys %ld\n", fBufferSize); in PrintToStream()
/haiku/src/add-ons/media/media-add-ons/dvb/
H A DPacket.cpp43 , fBufferSize(0) in Packet()
52 fBufferSize = clone.Size(); in Packet()
53 fBufferSizeMax = fBufferSize; in Packet()
54 fBuffer = malloc(fBufferSize); in Packet()
56 memcpy(fBuffer, clone.Data(), fBufferSize); in Packet()
62 , fBufferSize(size) in Packet()
79 if (fBufferSize + size > fBufferSizeMax) { in AddData()
80 fBufferSizeMax = (fBufferSize + size + 8191) & ~8191; in AddData()
84 memcpy((char *)fBuffer + fBufferSize, data, size); in AddData()
85 fBufferSize += size; in AddData()
H A DPacket.h55 size_t fBufferSize; variable
71 return fBufferSize; in Size()
92 fBufferSize = 0; in MakeEmpty()
/haiku/src/kits/network/libnetapi/
H A DDynamicBuffer.cpp23 fBufferSize(0), in DynamicBuffer()
30 fBufferSize = initialSize; in DynamicBuffer()
39 fBufferSize = 0; in ~DynamicBuffer()
47 fBufferSize(0), in DynamicBuffer()
54 status_t result = _GrowToFit(buffer.fBufferSize, true); in DynamicBuffer()
56 memcpy(fBuffer, buffer.fBuffer, fBufferSize); in DynamicBuffer()
126 return fBufferSize - fDataEnd; in BytesRemaining()
133 printf("Current buffer size : %ld\n", fBufferSize); in PrintToStream()
137 printf("Bytes available : %ld\n", fBufferSize - fDataEnd); in PrintToStream()
144 if (size <= fBufferSize - fDataEnd) in _GrowToFit()
[all …]
/haiku/src/system/kernel/fs/
H A DKPath.cpp34 fBufferSize(0), in KPath()
48 fBufferSize(0), in KPath()
62 fBufferSize(0), in KPath()
86 if (fBuffer != NULL && fBufferSize != bufferSize) { in SetTo()
88 fBufferSize = 0; in SetTo()
93 fBufferSize = bufferSize; in SetTo()
113 fBufferSize = other.fBufferSize; in Adopt()
121 other.fBufferSize = 0; in Adopt()
131 if (fBuffer != NULL || (fLazy && !fFailed && fBufferSize != 0)) in InitCheck()
173 if (length >= fBufferSize) in SetPath()
[all …]
/haiku/src/kits/debug/
H A DDebugEventStream.cpp26 fBufferSize(0), in BDebugEventInputStream()
64 fBufferSize = 0; in SetTo()
85 fBufferSize = 0; in SetTo()
89 fBufferCapacity = fBufferSize = size; in SetTo()
105 if (fBuffer != NULL && fBufferSize != INPUT_BUFFER_SIZE) { in Unset()
109 fBufferSize = 0; in Unset()
114 fBufferSize = 0; in Unset()
131 fBufferSize = fBufferCapacity - streamOffset; in Seek()
162 if (error == B_BAD_DATA && fBufferSize == 0) { in ReadNextEvent()
175 fBufferSize -= sizeof(system_profiler_event_header); in ReadNextEvent()
[all …]
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A DKPath.cpp28 fBufferSize(0), in KPath()
42 fBufferSize(0), in KPath()
56 fBufferSize(0), in KPath()
80 if (fBuffer != NULL && fBufferSize != bufferSize) { in SetTo()
83 fBufferSize = 0; in SetTo()
88 fBufferSize = bufferSize; in SetTo()
108 fBufferSize = other.fBufferSize; in Adopt()
116 other.fBufferSize = 0; in Adopt()
126 if (fBuffer != NULL || (fLazy && !fFailed && fBufferSize != 0)) in InitCheck()
168 if (length >= fBufferSize) in SetPath()
[all …]
/haiku/src/tools/fs_shell/
H A DKPath.cpp24 fBufferSize(0), in KPath()
35 fBufferSize(0), in KPath()
46 fBufferSize(0), in KPath()
67 if (fBuffer && fBufferSize != bufferSize) { in SetTo()
70 fBufferSize = 0; in SetTo()
81 fBufferSize = bufferSize; in SetTo()
104 fssh_status_t error = vfs_normalize_path(path, fBuffer, fBufferSize, in SetPath()
114 if (length >= fBufferSize) in SetPath()
155 fPathLength = fssh_strnlen(fBuffer, fBufferSize); in UnlockBuffer()
156 if (fPathLength == fBufferSize) { in UnlockBuffer()
[all …]
/haiku/src/kits/shared/
H A DMemoryRingIO.cpp51 #define RING_MASK(x) ((x) & (fBufferSize - 1))
75 fBufferSize(0), in BMemoryRingIO()
104 if (fBufferSize == 0) in InitCheck()
126 if (fReadAtNext + size < fBufferSize) in Read()
129 const size_t upper = fBufferSize - fReadAtNext; in Read()
163 if (fWriteAtNext + size < fBufferSize) in Write()
166 const size_t upper = fBufferSize - fWriteAtNext; in Write()
194 fBufferSize = 0; in SetSize()
207 fBufferSize = size; in SetSize()
210 fBufferFull = fBufferSize == availableBytes; in SetSize()
[all …]
/haiku/src/system/kernel/disk_device_manager/
H A DUserDataWriter.cpp15 fBufferSize(0), in UserDataWriter()
25 fBufferSize(0), in UserDataWriter()
44 fBufferSize = bufferSize; in SetTo()
46 if (fBuffer && fBufferSize > 0) { in SetTo()
60 fBufferSize = 0; in Unset()
76 if (fBuffer && offset + size <= fBufferSize) in AllocateData()
128 && (addr_t)address < (addr_t)fBuffer + fBufferSize - sizeof(void*)) { in AddRelocationEntry()
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DRequestChannel.cpp32 fBufferSize(bufferSize), in ChannelWriter()
41 if (fBytesWritten + size > fBufferSize) { in Write()
48 if (size > fBufferSize) { in Write()
73 int32 fBufferSize; member in RequestChannel::ChannelWriter
84 fBufferSize(bufferSize), in MemoryReader()
112 if (fBytesRead + size > fBufferSize) in Read()
123 return (fBytesRead == fBufferSize); in AllBytesRead()
128 int32 fBufferSize; member in RequestChannel::MemoryReader
144 fBufferSize(0) in RequestChannel()
149 fBufferSize = kDefaultBufferSize; in RequestChannel()
[all …]
H A DPortChannel.cpp18 fBufferSize(kDefaultBufferSize), in PortChannel()
32 fBufferSize(kDefaultBufferSize), in PortChannel()
44 fBufferSize(kDefaultBufferSize), in PortChannel()
103 int32 sendSize = min(size, fBufferSize); in Send()
133 if (size > fBufferSize) { in Receive()
144 fBufferSize); in Receive()
/haiku/src/system/kernel/debug/
H A Ddebug_commands.cpp78 fBufferSize(0) in PipeDebugOutputFilter()
93 fBuffer[fBufferSize] = '\0'; in PrintString()
96 fBufferSize = 0; in PrintString()
104 if (fBufferSize == fBufferCapacity) { in PrintString()
107 fBufferSize = 0; in PrintString()
117 if (fBufferSize < fBufferCapacity) { in Print()
118 size_t totalBytes = vsnprintf(fBuffer + fBufferSize, in Print()
119 fBufferCapacity - fBufferSize, format, args); in Print()
120 fBufferSize += std::min(totalBytes, in Print()
121 fBufferCapacity - fBufferSize - 1); in Print()
[all …]
H A Dsystem_profiler.cpp191 size_t fBufferSize; member in SystemProfiler
224 if (fWaitingProfilerThread != NULL && fBufferSize > fBufferCapacity / 2) { in _MaybeNotifyProfilerThreadLocked()
269 fBufferSize(0), in SystemProfiler()
559 || bytesRead > fBufferSize) { in NextBuffer()
563 fBufferSize -= bytesRead; in NextBuffer()
567 fHeader->size = fBufferSize; in NextBuffer()
571 if (fBufferSize > fBufferCapacity / 2) in NextBuffer()
599 if (fBufferSize > 0) in NextBuffer()
768 fHeader->size = fBufferSize; in ThreadEnqueuedInRunQueue()
798 fHeader->size = fBufferSize; in ThreadRemovedFromRunQueue()
[all …]
/haiku/src/servers/app/drawing/interface/remote/
H A DStreamingRingBuffer.cpp40 fBufferSize(bufferSize), in StreamingRingBuffer()
48 fBuffer = (uint8 *)malloc(fBufferSize); in StreamingRingBuffer()
50 fBufferSize = 0; in StreamingRingBuffer()
89 size_t copyLength = min_c(length, fBufferSize - fReadPosition); in Read()
130 fReadPosition = (fReadPosition + copyLength) % fBufferSize; in Read()
157 size_t copyLength = min_c(length, fBufferSize - fWritePosition); in Write()
158 copyLength = min_c(copyLength, fBufferSize - fReadable); in Write()
190 fWritePosition = (fWritePosition + copyLength) % fBufferSize; in Write()
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DRequestBufferReplacer.cpp13 fBufferSize(0) in RequestBufferReplacer()
31 fBufferSize = 0; in ReplaceBuffer()
33 if (fBufferSize == 0) in ReplaceBuffer()
37 RequestBuffer* requestBuffer = RequestBuffer::Create(fBufferSize); in ReplaceBuffer()
117 fBufferSize += size; in Visit()
H A DPath.cpp13 fBufferSize(0), in Path()
126 if (minLen != fBufferSize) { in _Resize()
132 fBufferSize = minLen; in _Resize()
/haiku/src/add-ons/translators/shared/
H A DStreamBuffer.cpp45 fBufferSize = 0; in StreamBuffer()
53 fBufferSize = max(nbuffersize, MIN_BUFFER_SIZE); in StreamBuffer()
54 fBuffer = new uint8[fBufferSize]; in StreamBuffer()
167 if (nbytes < fBufferSize - fLen) { in Write()
206 && (fLen + position < fBufferSize) in Seek()
270 ssize_t len = fStream->Read(fBuffer, fBufferSize); in _ReadStream()
/haiku/src/kits/game/
H A DGameProducer.cpp236 fBufferSize = fOutput.format.u.raw_audio.buffer_size; in Connect()
243 int32 frames = int32(fBufferSize / fFrameSize); in Connect()
270 fBufferGroup = new BBufferGroup(fBufferSize, count); in Connect()
326 fBufferSize = buffers[0]->SizeAvailable(); in SetBufferGroup()
330 fBufferSize = fOutput.format.u.raw_audio.buffer_size; in SetBufferGroup()
332 fBufferGroup = new BBufferGroup(fBufferSize, count); in SetBufferGroup()
373 size_t nSamples = fBufferSize / fFrameSize; in LateNoticeReceived()
501 size_t nFrames = fBufferSize / fFrameSize; in HandleEvent()
525 BBuffer* buf = fBufferGroup->RequestBuffer(fBufferSize, BufferDuration()); in FillNextBuffer()
534 int64 frames = int64(fBufferSize / fFrameSize); in FillNextBuffer()
[all …]
H A DPushGameSound.cpp33 fBufferSize = fPageSize * fPageCount; in BPushGameSound()
35 fBuffer = new char[fBufferSize]; in BPushGameSound()
46 fBufferSize(0) in BPushGameSound()
77 if (fLockPos >= fBufferSize) in LockNextPage()
98 *out_size = fBufferSize; in LockForCyclic()
159 if (fPlayPos + bytes > fBufferSize) { in FillBuffer()
160 size_t remainder = fBufferSize - fPlayPos; in FillBuffer()
H A DFileGameSound.cpp193 if (fPlayPosition == 0 || fPlayPosition >= fBufferSize) { in FillBuffer()
198 size_t bytes = fBufferSize - fPlayPosition; in FillBuffer()
365 fBufferSize = gsformat.buffer_size; in Init()
366 if (fBufferSize < dformat.buffer_size) in Init()
367 fBufferSize = dformat.buffer_size; in Init()
373 fBuffer = new char[fBufferSize * 2]; in Init()
374 memset(fBuffer, middle, fBufferSize * 2); in Init()
398 fBufferSize = frames * fFrameSize; in Load()
401 if (fBufferSize <= 0) { in Load()
/haiku/src/kits/media/
H A DMediaDecoder.cpp246 , fBufferSize(0) in BMediaBufferDecoder()
255 , fBufferSize(0) in BMediaBufferDecoder()
262 , fBufferSize(0) in BMediaBufferDecoder()
276 fBufferSize = input_size; in DecodeBuffer()
291 if (!fBufferSize) in GetNextChunk()
295 *chunkLen = fBufferSize; in GetNextChunk()
296 fBufferSize = 0; in GetNextChunk()
/haiku/src/add-ons/kernel/network/stack/
H A Dutility.h26 { return fBufferSize - fAvailable; } in BytesConsumed()
30 size_t fBufferSize; variable
40 fBufferSize(size), in UserBuffer()

1234