Searched refs:bytesWritten (Results 1 - 25 of 116) sorted by relevance

12345

/haiku/src/bin/makeudfimage/
H A DPositionIOStream.cpp66 ssize_t bytesWritten = fStream.Write(buffer, bytesRead); local
67 if (bytesWritten >= 0) {
68 bytes += bytesWritten;
70 error = status_t(bytesWritten);
105 ssize_t bytesWritten = fStream.WriteAt(pos, buffer, bytesRead); local
106 if (bytesWritten >= 0) {
107 bytes += bytesWritten;
108 pos += bytesWritten;
110 error = status_t(bytesWritten);
143 ssize_t bytesWritten local
176 ssize_t bytesWritten = fStream.WriteAt(pos, buffer, bufferSize); local
[all...]
/haiku/src/kits/support/
H A DBufferedDataIO.cpp89 ssize_t bytesWritten = fStream.Write(fBuffer + fPosition, fSize);
90 if ((size_t)bytesWritten == fSize) {
95 } else if (bytesWritten >= 0) {
96 fSize -= bytesWritten;
97 fPosition += bytesWritten;
101 return bytesWritten;
182 size_t bytesWritten = 0; local
186 bytesWritten = fSize;
194 return bytesWritten + streamWritten;
199 bytesWritten
[all...]
H A DDataPositionIOWrapper.cpp40 ssize_t bytesWritten = fIO->Write(buffer, size); local
41 if (bytesWritten > 0)
42 fPosition += bytesWritten;
44 return bytesWritten;
H A DDataIO.cpp95 ssize_t bytesWritten = Write(in, bytesRemaining); local
96 if (bytesWritten < 0) {
97 error = bytesWritten;
101 if (bytesWritten == 0) {
106 in += bytesWritten;
107 bytesRemaining -= bytesWritten;
250 ssize_t bytesWritten = WriteAt(position, in, bytesRemaining); local
251 if (bytesWritten < 0) {
252 error = bytesWritten;
256 if (bytesWritten
[all...]
H A DBufferIO.cpp207 ssize_t bytesWritten = fStream->WriteAt(fBufferStart, fBuffer, fBufferUsed);
208 if (bytesWritten > 0)
211 return (bytesWritten < 0) ? bytesWritten : B_OK;
H A DCompressionAlgorithm.cpp281 ssize_t bytesWritten = fOutput->Write(fBuffer, fBufferSize);
282 if (bytesWritten < 0)
283 return bytesWritten;
284 if (bytesWritten == 0)
288 fBufferSize -= bytesWritten;
290 memmove(fBuffer, fBuffer + bytesWritten, fBufferSize);
/haiku/src/kits/shared/
H A DAttributeUtilities.cpp52 ssize_t bytesWritten = destination.WriteAttr(attrName,
54 if (bytesWritten < 0)
55 return bytesWritten;
/haiku/src/kits/storage/
H A DFileDescriptorIO.cpp41 ssize_t bytesWritten = write(fFD, buffer, size); local
42 return bytesWritten >= 0 ? bytesWritten : errno;
57 ssize_t bytesWritten = pwrite(fFD, buffer, size, position); local
58 return bytesWritten >= 0 ? bytesWritten : errno;
H A DFdIO.cpp70 ssize_t bytesWritten = write(fFd, buffer, size); local
71 return bytesWritten >= 0 ? bytesWritten : errno;
86 ssize_t bytesWritten = pwrite(fFd, buffer, size, position); local
87 return bytesWritten >= 0 ? bytesWritten : errno;
H A DCopyEngine.cpp355 ssize_t bytesWritten = destination.WriteAt(offset, fBuffer, bytesRead);
356 if (bytesWritten < 0) {
357 _NotifyError(bytesWritten, "Failed to write to file \"%s\": %s\n",
358 destPath, strerror(bytesWritten));
359 return bytesWritten;
362 if (bytesWritten != bytesRead) {
436 ssize_t bytesWritten = destination.WriteAttr(attrName, local
438 if (bytesWritten < 0) {
440 attrInfo.type, bytesWritten, "Failed to write attribute "
442 strerror(bytesWritten));
[all...]
/haiku/src/add-ons/translators/ico/
H A DICO.cpp372 ssize_t bytesWritten = target.Write(outRowData, outRowBytes); local
373 if (bytesWritten < B_OK)
374 return bytesWritten;
375 if (bytesWritten != outRowBytes)
455 ssize_t bytesWritten = target.Write(xorRowData, xorRowBytes); local
456 if (bytesWritten < B_OK)
457 return bytesWritten;
458 if (bytesWritten != xorRowBytes)
477 ssize_t bytesWritten = target.Write(andRowData, andRowBytes); local
478 if (bytesWritten < B_O
730 ssize_t bytesWritten = target.Write(&header, sizeof(ico_header)); local
[all...]
/haiku/src/kits/debugger/value/
H A DValueWriter.cpp82 ssize_t bytesWritten = fDebuggerInterface->WriteMemory(address, local
85 if (bytesWritten < 0)
86 return bytesWritten;
87 if ((uint32)bytesWritten != bytesToWrite)
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DFile.h21 size_t *bytesWritten);
H A DFile.cpp35 size_t *bytesWritten)
39 bytesWritten);
34 WriteAt(off_t offset, const void *buffer, size_t size, size_t *bytesWritten) argument
H A DDataContainer.cpp128 size_t *bytesWritten)
130 PRINT("DataContainer::WriteAt(%Ld, %p, %lu, %p), fSize: %Ld\n", offset, _buffer, size, bytesWritten, fSize);
133 status_t error = (buffer && offset >= 0 && bytesWritten
147 if (bytesWritten != NULL)
148 *bytesWritten = size;
153 error = _DoCacheIO(offset, (uint8*)buffer, size, bytesWritten, true);
127 WriteAt(off_t offset, const void *_buffer, size_t size, size_t *bytesWritten) argument
/haiku/src/add-ons/translators/raw/
H A DRAWTranslator.cpp315 ssize_t bytesWritten = target->Write(&header, sizeof(TranslatorBitmap)); local
316 if (bytesWritten < B_OK)
317 return bytesWritten;
319 if ((size_t)bytesWritten != sizeof(TranslatorBitmap))
325 bytesWritten = target->Write(buffer, dataSize);
326 if (bytesWritten < B_OK)
327 return bytesWritten;
329 if ((size_t)bytesWritten != dataSize)
/haiku/src/system/kernel/debug/
H A Dgdb.cpp116 ssize_t bytesWritten = arch_debug_gdb_get_registers(sReply + 1, local
118 if (bytesWritten < 0) {
124 bytesWritten++;
128 for (int32 i = 1; i < bytesWritten; i++)
133 int result = snprintf(sReply + bytesWritten, sizeof(sReply) - bytesWritten,
135 if (result >= (ssize_t)sizeof(sReply) - bytesWritten) {
H A DBreakpointManager.cpp324 size_t& bytesWritten)
326 bytesWritten = 0;
366 bytesWritten += toCopy;
387 return bytesWritten > 0 ? B_OK : error;
391 bytesWritten += chunkWritten;
404 bytesWritten += toCopy;
416 return bytesWritten > 0 ? B_OK : error;
418 bytesWritten += chunkWritten;
539 size_t bytesWritten; local
541 DEBUG_SOFTWARE_BREAKPOINT_SIZE, bytesWritten);
323 WriteMemory(void* _address, const void* _buffer, size_t size, size_t& bytesWritten) argument
688 _WriteMemory(addr_t _address, const void* _buffer, size_t size, size_t& bytesWritten) argument
[all...]
/haiku/src/preferences/keymap/
H A DKeymap.cpp164 ssize_t bytesWritten = file.Write(&fKeys, sizeof(fKeys)); local
165 if (bytesWritten < (ssize_t)sizeof(fKeys))
166 status = bytesWritten < 0 ? bytesWritten : B_IO_ERROR;
174 bytesWritten = file.Write(&fCharsSize, sizeof(uint32));
175 if (bytesWritten < (ssize_t)sizeof(uint32))
176 status = bytesWritten < 0 ? bytesWritten : B_IO_ERROR;
182 bytesWritten = file.Write(fChars, fCharsSize);
183 if (bytesWritten < (ssize_
[all...]
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DRequestFlattener.cpp52 ssize_t bytesWritten = fDataIO->Write(buffer, size); local
53 if (bytesWritten < 0)
54 return bytesWritten;
55 if (bytesWritten != size)
/haiku/src/kits/interface/
H A DPicture.cpp325 ssize_t bytesWritten = stream->Write(&header, sizeof(header)); local
326 if (bytesWritten < B_OK)
327 return bytesWritten;
329 if (bytesWritten != (ssize_t)sizeof(header))
637 ssize_t bytesWritten = stream->Write(&count, sizeof(count)); local
638 if (bytesWritten < B_OK)
639 return bytesWritten;
641 if (bytesWritten != (ssize_t)sizeof(count))
650 bytesWritten = stream->Write(&fNewSize, sizeof(fNewSize));
651 if (bytesWritten < B_O
[all...]
/haiku/src/add-ons/translators/webp/
H A DWebPTranslator.cpp355 ssize_t bytesWritten = target->Write(&bitmapHeader, local
357 if (bytesWritten < B_OK)
358 return bytesWritten;
360 if ((size_t)bytesWritten != sizeof(TranslatorBitmap))
373 bytesWritten = target->Write(p, 4);
374 if (bytesWritten < B_OK)
375 return bytesWritten;
377 if (bytesWritten != 4)
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DNodeHandle.cpp158 ssize_t bytesWritten = write_pos(fFD, pos, buffer, size);
159 if (bytesWritten < 0)
162 *_bytesWritten = bytesWritten;
190 ssize_t bytesWritten = fs_write_attr(fFD, name, type, pos, buffer, size);
191 if (bytesWritten < 0)
194 *_bytesWritten = bytesWritten;
/haiku/src/tools/fs_shell/
H A Dcommand_cp.cpp212 fssh_ssize_t bytesWritten = fs_write_attr(fFD, name, type, pos, buffer, local
214 return (bytesWritten >= 0 ? bytesWritten : fssh_get_errno());
304 fssh_ssize_t bytesWritten = write(fFD, buffer, size); local
305 return (bytesWritten >= 0 ? bytesWritten : fssh_get_errno());
611 fssh_ssize_t bytesWritten = _kern_write(attrFD, pos, buffer, size);
616 return bytesWritten;
911 fssh_ssize_t bytesWritten = targetFile->Write(sCopyBuffer, bytesRead); local
916 if (bytesWritten <
996 fssh_ssize_t bytesWritten = targetNode->WriteAttr(name, info.type, 0, local
1022 fssh_ssize_t bytesWritten = targetNode->WriteAttr(name, info.type, pos, local
[all...]
H A Dfd.cpp551 fssh_ssize_t bytesWritten; local
565 bytesWritten = descriptor->ops->fd_write(descriptor, pos, buffer, &length);
566 if (bytesWritten >= FSSH_B_OK) {
568 bytesWritten = FSSH_SSIZE_MAX;
570 bytesWritten = (fssh_ssize_t)length;
575 bytesWritten = FSSH_B_BAD_VALUE;
578 return bytesWritten;
586 fssh_ssize_t bytesWritten = 0; local
606 bytesWritten = status;
610 if ((uint32_t)bytesWritten
[all...]

Completed in 266 milliseconds

12345