Searched refs:BytesWritten (Results 1 – 6 of 6) sorted by relevance
117 size_t BytesWritten = 0; in writeLoadCommandData() local124 BytesWritten += sizeof(MachO::section); in writeLoadCommandData()126 return BytesWritten; in writeLoadCommandData()132 size_t BytesWritten = 0; in writeLoadCommandData() local140 BytesWritten += sizeof(MachO::section_64); in writeLoadCommandData()142 return BytesWritten; in writeLoadCommandData()146 size_t BytesWritten = 0; in writePayloadString() local149 BytesWritten = LC.PayloadString.length(); in writePayloadString()151 return BytesWritten; in writePayloadString()178 size_t BytesWritten = 0; in writeLoadCommandData() local[all …]
249 uint32_t BytesWritten = 0; in readBytes() local261 ::memcpy(WriteBuffer + BytesWritten, ChunkStart, BytesInChunk); in readBytes()263 BytesWritten += BytesInChunk; in readBytes()397 uint32_t BytesWritten = 0; in writeBytes() local403 const uint8_t *Chunk = Buffer.data() + BytesWritten; in writeBytes()411 BytesWritten += BytesToWriteInChunk; in writeBytes()
907 int BytesRead = 0, BytesWritten = 0; in copy_file() local913 BytesWritten = write(WriteFD, Buf, BytesRead); in copy_file()914 if (BytesWritten < 0) in copy_file()916 BytesRead -= BytesWritten; in copy_file()918 if (BytesWritten < 0) in copy_file()925 if (BytesRead < 0 || BytesWritten < 0) in copy_file()
965 int BytesRead = 0, BytesWritten = 0; in copy_file_internal() local971 BytesWritten = write(WriteFD, Buf, BytesRead); in copy_file_internal()972 if (BytesWritten < 0) in copy_file_internal()974 BytesRead -= BytesWritten; in copy_file_internal()976 if (BytesWritten < 0) in copy_file_internal()981 if (BytesRead < 0 || BytesWritten < 0) in copy_file_internal()
440 uint64_t BytesWritten = sizeof(MachO::linker_option_command); in writeLinkerOptionsLoadCommand() local444 BytesWritten += Option.size() + 1; in writeLinkerOptionsLoadCommand()449 offsetToAlignment(BytesWritten, is64Bit() ? Align(8) : Align(4))); in writeLinkerOptionsLoadCommand()
478 uint64_t BytesWritten = EltSize - Offset; in ReadDataFromGlobal() local479 assert(BytesWritten <= EltSize && "Not indexing into this element?"); in ReadDataFromGlobal()480 if (BytesWritten >= BytesLeft) in ReadDataFromGlobal()484 BytesLeft -= BytesWritten; in ReadDataFromGlobal()485 CurPtr += BytesWritten; in ReadDataFromGlobal()