Searched refs:buffer (Results 276 - 300 of 2152) sorted by relevance

<<11121314151617181920>>

/haiku/src/system/kernel/device_manager/
H A DAbstractModuleDevice.cpp72 void* buffer, size_t* _length, bool isWrite)
75 status_t status = request.Init(pos, (addr_t)buffer, *_length, isWrite, 0);
90 AbstractModuleDevice::Read(void* cookie, off_t pos, void* buffer, size_t* _length) argument
94 return BaseDevice::Read(cookie, pos, buffer, _length);
96 return _DoIO(cookie, pos, buffer, _length, false);
98 return Module()->read(cookie, pos, buffer, _length);
103 AbstractModuleDevice::Write(void* cookie, off_t pos, const void* buffer, size_t* _length) argument
107 return BaseDevice::Write(cookie, pos, buffer, _length);
109 return _DoIO(cookie, pos, const_cast<void*>(buffer), _length, true);
111 return Module()->write(cookie, pos, buffer, _lengt
71 _DoIO(void* cookie, off_t pos, void* buffer, size_t* _length, bool isWrite) argument
125 Control(void* cookie, int32 op, void* buffer, size_t length) argument
[all...]
/haiku/src/kits/network/libnetapi/
H A DDatagramSocket.cpp92 BDatagramSocket::SendTo(const BNetworkAddress& address, const void* buffer, argument
95 ssize_t bytesSent = sendto(fSocket, buffer, size, 0, address,
105 BDatagramSocket::ReceiveFrom(void* buffer, size_t bufferSize, argument
109 ssize_t bytesReceived = recvfrom(fSocket, buffer, bufferSize, 0,
122 BDatagramSocket::Read(void* buffer, size_t size) argument
124 ssize_t bytesReceived = recv(Socket(), buffer, size, 0);
135 BDatagramSocket::Write(const void* buffer, size_t size) argument
140 bytesSent = sendto(Socket(), buffer, size, 0, fPeer, fPeer.Length());
142 bytesSent = send(Socket(), buffer, size, 0);
H A DProxySecureSocket.cpp59 char buffer[256]; local
60 ssize_t length = BSocket::Read(buffer, sizeof(buffer) - 1);
64 buffer[length] = '\0';
66 int matches = sscanf(buffer, "HTTP/1.0 %d %*[^\r\n]\r\n\r\n", &httpStatus);
/haiku/src/apps/cortex/addons/common/
H A DMediaNodeControlApp.cpp89 char buffer[512]; local
90 sprintf(buffer,
94 BAlert* alert = new BAlert("error", buffer, B_TRANSLATE("OK"));
104 char buffer[512]; local
105 sprintf(buffer,
108 BAlert* alert = new BAlert("error", buffer, B_TRANSLATE("OK"));
122 char buffer[512]; local
123 sprintf(buffer,
126 BAlert* alert = new BAlert("error", buffer, B_TRANSLATE("OK"));
/haiku/src/add-ons/kernel/bus_managers/ata/
H A DATAHelper.cpp15 /*! Copy data between ccb data and buffer
18 allocation_length- limit of ccb's data buffer according to CDB
19 buffer - data to copy data from/to
21 to_buffer - true: copy from ccb to buffer
22 false: copy from buffer to ccb
27 void *buffer, int size, bool toBuffer)
53 vm_memcpy_from_physical(buffer, sgList->address + offset, bytes,
56 vm_memcpy_to_physical(sgList->address + offset, buffer, bytes,
60 buffer = (char *)buffer
26 copy_sg_data(scsi_ccb *ccb, uint offset, uint allocationLength, void *buffer, int size, bool toBuffer) argument
[all...]
/haiku/src/add-ons/print/drivers/postscript/
H A DPPDParser.cpp45 char buffer[1025]; local
46 while ((len = file.Read(buffer, sizeof(buffer)-1)) > 0) {
47 buffer[len] = '\0';
48 fContent << buffer; local
/haiku/src/bin/network/
H A Dwakeonlan.cpp26 char buffer[102]; local
27 memset(buffer, 0xff, 6);
29 memcpy(buffer + i * 6, mac, sizeof(mac));
50 result = sendto(sock, buffer, sizeof(buffer), 0,
/haiku/src/add-ons/kernel/busses/scsi/virtio/
H A DVirtioSCSIHelper.cpp16 /*! Copy data between ccb data and buffer
19 allocation_length- limit of ccb's data buffer according to CDB
20 buffer - data to copy data from/to
22 to_buffer - true: copy from ccb to buffer
23 false: copy from buffer to ccb
28 void *buffer, int size, bool toBuffer)
54 vm_memcpy_from_physical(buffer, sgList->address + offset, bytes,
57 vm_memcpy_to_physical(sgList->address + offset, buffer, bytes,
61 buffer = (char *)buffer
27 copy_sg_data(scsi_ccb *ccb, uint offset, uint allocationLength, void *buffer, int size, bool toBuffer) argument
[all...]
/haiku/headers/os/package/hpkg/
H A DDataReader.h24 virtual status_t ReadData(off_t offset, void* buffer,
33 virtual status_t ReadData(off_t offset, void* buffer,
46 virtual status_t ReadData(off_t offset, void* buffer,
59 virtual status_t ReadData(off_t offset, void* buffer,
73 virtual status_t ReadData(off_t offset, void* buffer,
/haiku/src/preferences/media/
H A DMedia.cpp34 char buffer[255]; local
36 while ((size = file.Read(buffer, 255)) > 0) {
38 while (buffer[i] == '#') {
39 while (i < size && buffer[i] != '\n')
45 if (sscanf(&buffer[i], scanString, &a, &b, &c, &d) == 4) {
/haiku/src/kits/midi/
H A DMidiSettings.cpp67 char buffer[B_FILE_NAME_LENGTH + 128]; local
68 snprintf(buffer, sizeof(buffer), "# Midi\n\tsoundfont \"%s\"\n",
71 size_t bufferSize = strlen(buffer);
73 || file.Write(buffer, bufferSize) != (ssize_t)bufferSize)
/haiku/src/tests/system/network/ipv6/
H A Draw_server.cpp24 char buffer[1000]; local
29 int status = recvfrom(fd, buffer, sizeof(buffer) - 1, 0,
39 char *p = buffer;
42 buffer[status] = 0;
H A Dudp_server.cpp24 char buffer[1000]; local
29 int status = recvfrom(fd, buffer, sizeof(buffer) - 1, 0,
39 buffer[status] = 0;
40 printf("received %d bytes: \"%s\"\n", status, buffer);
/haiku/src/tests/kits/interface/
H A DWidthBufferTest.cpp69 char buffer[512]; local
70 while (fgets(buffer, 512, file)) {
71 float width = fWidthBuffer->StringWidth(buffer, 0,
72 strlen(buffer), be_plain_font);
73 printf("string: %s, width: %f\n", buffer, width);
/haiku/headers/private/media/
H A DSharedBufferList.h32 BBuffer** buffer);
33 status_t RemoveBuffer(BBuffer* buffer);
37 BBuffer* buffer);
47 status_t RecycleBuffer(BBuffer* buffer);
55 BBuffer* buffer; member in struct:BPrivate::SharedBufferList::_shared_buffer_info
62 // 16 bytes per buffer, 8 pages in total (one entry less for the list)
/haiku/src/system/libroot/posix/unistd/
H A Dlink.c16 readlink(const char *path, char *buffer, size_t bufferSize) argument
18 return readlinkat(AT_FDCWD, path, buffer, bufferSize);
23 readlinkat(int fd, const char *path, char *buffer, size_t bufferSize) argument
26 status_t status = _kern_read_link(fd, path, buffer, &linkLen);
32 // If the buffer is big enough, null-terminate the string. That's not
35 buffer[linkLen] = '\0';
38 // supposed to return the number of bytes placed into buffer. If the
39 // buffer is larger than the link contents, then linkLen is the number
40 // of bytes written to the buffer. Otherwise, bufferSize bytes will have
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/
H A De1000_manage.h42 s32 e1000_mng_host_if_write_generic(struct e1000_hw *hw, u8 *buffer,
47 u8 *buffer, u16 length);
49 u8 e1000_calculate_checksum(u8 *buffer, u32 length);
50 s32 e1000_host_interface_command(struct e1000_hw *hw, u8 *buffer, u32 length);
51 s32 e1000_load_firmware(struct e1000_hw *hw, u8 *buffer, u32 length);
/haiku/src/apps/haikudepot/util/
H A DDataIOUtils.h32 virtual ssize_t Read(void* buffer, size_t size);
33 virtual ssize_t Write(const void* buffer, size_t size);
49 virtual ssize_t Read(void* buffer, size_t size);
50 virtual ssize_t Write(const void* buffer, size_t size);
55 status_t _ReadSingleByte(void* buffer);
/haiku/src/kits/mail/
H A DMailContainer.cpp216 char buffer [4096]; local
258 if (boundaryLength > (ssize_t) sizeof (buffer) / 2)
267 bufferOffset = data->Position(); // File offset of the start of the buffer.
268 bufferIndex = 0; // Current position we are examining in the buffer.
269 bufferSize = 0; // Amount of data actually in the buffer, not including NUL.
277 // Refill the buffer if the remaining amount of data is less than a
281 // Shuffle the remaining bit of data in the buffer over to the front.
283 memmove (buffer, buffer + bufferIndex, bufferSize - bufferIndex);
288 // Fill up the rest of the buffer wit
424 uint8 buffer[1024]; local
[all...]
/haiku/src/kits/media/experimental/
H A DAdapterIO.cpp21 RelativePositionIO(BAdapterIO* owner, BPositionIO* buffer, argument
28 fBuffer(buffer),
49 status_t FlushBefore(off_t position, BPositionIO* buffer, const void* oldBuffer, argument
58 status_t status = buffer->WriteAt(0, (void*)((addr_t)oldBuffer + relative),
62 status = buffer->Seek(fBuffer->Position() - relative, SEEK_SET);
67 SetBuffer(buffer);
118 virtual ssize_t ReadAt(off_t position, void* buffer, argument
124 _PositionToRelative(position), buffer, size);
129 const void* buffer, size_t size)
134 _PositionToRelative(position), buffer, siz
128 WriteAt(off_t position, const void* buffer, size_t size) argument
171 BackWrite(const void* buffer, size_t size) argument
180 SetBuffer(BPositionIO* buffer) argument
276 ReadAt(off_t position, void* buffer, size_t size) argument
289 WriteAt(off_t position, const void* buffer, size_t size) argument
400 SetBuffer(BPositionIO* buffer) argument
415 BMallocIO* buffer = new BMallocIO(); local
443 BackWrite(const void* buffer, size_t size) argument
487 Write(const void* buffer, size_t size) argument
[all...]
/haiku/src/add-ons/kernel/network/protocols/icmp/
H A Dicmp.cpp114 get_domain(struct net_buffer* buffer) argument
117 if (buffer->interface_address != NULL)
118 domain = buffer->interface_address->domain;
120 domain = sStackModule->get_domain(buffer->source->sa_family);
363 icmp_send_data(net_protocol* protocol, net_buffer* buffer) argument
365 return protocol->next->module->send_data(protocol->next, buffer);
371 net_buffer* buffer)
374 buffer);
415 icmp_receive_data(net_buffer* buffer) argument
417 TRACE("ICMP received some data, buffer lengt
370 icmp_send_routed_data(net_protocol* protocol, struct net_route* route, net_buffer* buffer) argument
531 icmp_error_reply(net_protocol* protocol, net_buffer* buffer, net_error error, net_error_data* errorData) argument
[all...]
/haiku/src/apps/packageinstaller/
H A DPackageInfo.cpp130 char buffer[16]; local
131 fPackageFile->Read(buffer, 8);
132 if (buffer[0] != 'A' || buffer[1] != 'l' || buffer[2] != 'B'
133 || buffer[3] != 0x1a) {
168 bytesRead = fPackageFile->Read(buffer, 7);
173 if (!memcmp(buffer, "PhIn", 5)) {
174 } else if (!memcmp(buffer, "FVer", 5)) {
178 } else if (!memcmp(buffer, "AFl
[all...]
/haiku/src/kits/network/libnetservices2/
H A DHttpParser.cpp41 \brief Parse the status from the \a buffer and store it in \a status.
44 \retval false There is not enough data in the buffer for a full status.
49 HttpParser::ParseStatus(HttpBuffer& buffer, BHttpStatus& status) argument
54 auto statusLine = buffer.GetNextLine();
84 \brief Parse the fields from the \a buffer and store it in \a fields.
87 \a buffer, it will still parse all complete fields and store them in the \a fields.
94 \retval false There is not enough data in the buffer to complete parsing of fields.
99 HttpParser::ParseFields(HttpBuffer& buffer, BHttpFields& fields) argument
104 auto fieldLine = buffer.GetNextLine();
109 fieldLine = buffer
202 ParseBody(HttpBuffer& buffer, HttpTransferFunction writeToBody, bool readEnd) argument
328 ParseBody(HttpBuffer& buffer, HttpTransferFunction writeToBody, bool readEnd) argument
389 ParseBody(HttpBuffer& buffer, HttpTransferFunction writeToBody, bool readEnd) argument
531 ParseBody(HttpBuffer& buffer, HttpTransferFunction writeToBody, bool readEnd) argument
[all...]
/haiku/src/add-ons/media/media-add-ons/radeon/
H A DI2CPort.cpp95 char buffer[1]; local
97 return Read(address, buffer, sizeof(buffer));
100 bool CI2CPort::Write(int address, const char * buffer, int length) argument
102 if (Send(address, buffer, length, true, true) == length)
107 bool CI2CPort::Read(int address, char * buffer, int length) argument
109 if (Receive(address, buffer, length, true, true) == length)
114 bool CI2CPort::Write(int address, const char * buffer, int length, char * result, int reslen) argument
116 if (Send(address, buffer, length, true, false) == length)
136 char buffer[ local
145 Send(int address, const char * buffer, int length, bool start, bool stop) argument
190 Receive(int address, char * buffer, int length, bool start, bool stop) argument
[all...]
/haiku/src/tests/system/boot/heap/
H A DheapTest.cpp18 extern "C" void heap_free(void* buffer);
77 dump_allocated_chunk(int32 index, void* buffer) argument
79 if (buffer == NULL || gVerbosity < 3)
82 size_t* size = (size_t*)((uint8*)buffer - sizeof(uint32));
83 printf("\t%ld. allocation at %p, chunk at %p, size = %ld\n", index, buffer,
106 test_free(void* buffer) argument
109 printf("\tfreeing buffer at %p\n", buffer);
110 dump_allocated_chunk(-1, buffer);
113 heap_free(buffer);
269 uint8* buffer = (uint8*)test_malloc(1); local
[all...]

Completed in 183 milliseconds

<<11121314151617181920>>