Searched refs:numBytes (Results 1 - 25 of 274) sorted by relevance

1234567891011

/haiku/src/servers/app/drawing/
H A Ddrawing_support.h19 gfxcpy(uint8* dst, const uint8* src, int32 numBytes) argument
23 int32 numBytesBegin = numBytes;
24 while (numBytes >= 32) {
29 numBytes -= 32;
31 while (numBytes >= 16) {
34 numBytes -= 16;
36 while (numBytes >= 8) {
38 numBytes -= 8;
40 if (numBytes > 0) {
42 dst += numBytesBegin - numBytes;
66 gfxcpy32(uint8* dst, const uint8* src, int32 numBytes) argument
97 gfxset32(uint8* dst, uint32 color, int32 numBytes) argument
[all...]
/haiku/headers/posix/
H A Dmalloc.h16 extern void *malloc(size_t numBytes);
20 extern void *memalign(size_t alignment, size_t numBytes);
21 extern void *valloc(size_t numBytes);
/haiku/src/add-ons/kernel/drivers/misc/
H A Dmem.c111 mem_read(void* cookie, off_t position, void* buffer, size_t* numBytes) argument
119 *numBytes = 0;
123 area = mem_map_target(position, *numBytes, B_READ_AREA, &virtualAddress);
125 *numBytes = 0;
129 if (user_memcpy(buffer, virtualAddress, *numBytes) != B_OK)
138 mem_write(void* cookie, off_t position, const void* buffer, size_t* numBytes) argument
146 *numBytes = 0;
150 area = mem_map_target(position, *numBytes, B_WRITE_AREA, &virtualAddress);
152 *numBytes = 0;
156 if (user_memcpy(virtualAddress, buffer, *numBytes) !
[all...]
/haiku/src/system/libnetwork/
H A Dr5_compatibility.cpp28 const char* name, char* value, unsigned numBytes);
74 const char* name, char* value, unsigned numBytes)
80 strlcpy(value, "hostname", numBytes);
82 strlcpy(value, "baron", numBytes);
84 strlcpy(value, "password", numBytes);
86 strlcpy(value, "1", numBytes);
88 strlcpy(value, "1", numBytes);
73 find_net_setting(net_settings* settings, const char* heading, const char* name, char* value, unsigned numBytes) argument
/haiku/src/add-ons/kernel/drivers/ports/usb_serial/
H A DKLSI.cpp136 KLSIDevice::OnRead(char **buffer, size_t *numBytes) argument
138 if (*numBytes <= 2) {
139 *numBytes = 0;
144 *numBytes = MIN(bytes, *numBytes - 2);
150 KLSIDevice::OnWrite(const char *buffer, size_t *numBytes, size_t *packetBytes) argument
152 if (*numBytes > KLSI_BUFFER_SIZE)
153 *numBytes = *packetBytes = KLSI_BUFFER_SIZE;
155 if (*numBytes > WriteBufferSize() - 2)
156 *numBytes
[all...]
H A DKLSI.h61 virtual void OnRead(char **buffer, size_t *numBytes);
62 virtual void OnWrite(const char *buffer, size_t *numBytes,
H A DFTDI.h43 virtual void OnRead(char **buffer, size_t *numBytes);
44 virtual void OnWrite(const char *buffer, size_t *numBytes,
/haiku/src/add-ons/kernel/drivers/audio/ac97/geode/
H A Ddevice.cpp43 geode_read(void* cookie, off_t position, void *buf, size_t* numBytes) argument
45 *numBytes = 0;
52 geode_write(void* cookie, off_t position, const void* buffer, size_t* numBytes) argument
54 *numBytes = 0;
/haiku/src/preferences/screen/
H A DRefreshSlider.h24 virtual void KeyDown(const char* bytes, int32 numBytes);
/haiku/src/add-ons/kernel/drivers/audio/hda/
H A Ddevice.cpp47 hda_read(void* cookie, off_t position, void* buffer, size_t* numBytes) argument
49 *numBytes = 0;
55 hda_write(void* cookie, off_t position, const void* buffer, size_t* numBytes) argument
57 *numBytes = 0;
/haiku/src/servers/notification/
H A DAppUsage.cpp49 AppUsage::Flatten(void* buffer, ssize_t numBytes) const
56 if (numBytes < msg.FlattenedSize())
59 return msg.Flatten((char*)buffer, numBytes);
91 ssize_t numBytes)
90 Unflatten(type_code code, const void* buffer, ssize_t numBytes) argument
H A DNotificationReceived.cpp55 NotificationReceived::Flatten(void* buffer, ssize_t numBytes) const
63 if (numBytes < msg.FlattenedSize())
66 return msg.Flatten((char*)buffer, numBytes);
99 ssize_t numBytes)
98 Unflatten(type_code code, const void* buffer, ssize_t numBytes) argument
/haiku/src/kits/shared/
H A DKeymap.cpp312 uint32 numBytes = fChars[offset];
313 if (!numBytes)
347 char** chars, int32* numBytes) const
349 *numBytes = 0;
378 *numBytes = fChars[offset];
379 if (*numBytes <= 0) {
386 *numBytes = fChars[offset];
387 if (*numBytes <= 0)
414 char* str = *chars = new char[*numBytes + 1];
415 strncpy(str, &fChars[offset + 1], *numBytes);
[all...]
/haiku/headers/private/notification/
H A DNotificationReceived.h23 virtual status_t Flatten(void *buffer, ssize_t numBytes) const;
28 ssize_t numBytes);
H A DAppUsage.h29 virtual status_t Flatten(void* buffer, ssize_t numBytes) const;
34 ssize_t numBytes);
/haiku/src/servers/app/drawing/interface/remote/
H A DRemoteEventStream.cpp168 int32 numBytes; local
169 if (message.Read(numBytes) != B_OK)
172 if (numBytes > 1000)
175 char* bytes = (char*)malloc(numBytes + 1);
179 if (message.ReadList(bytes, numBytes) != B_OK) {
184 for (int32 i = 0; i < numBytes; i++)
187 bytes[numBytes] = 0;
188 event->AddData("bytes", B_STRING_TYPE, bytes, numBytes + 1, false);
/haiku/src/add-ons/kernel/bus_managers/scsi/
H A Dbus_raw.cpp101 size_t *numBytes)
103 *numBytes = 0;
110 const void *data, size_t *numBytes)
112 *numBytes = 0;
100 scsi_bus_raw_read(void *cookie, off_t position, void *data, size_t *numBytes) argument
109 scsi_bus_raw_write(void *cookie, off_t position, const void *data, size_t *numBytes) argument
/haiku/headers/private/graphics/radeon_hd/
H A DAreaKeeper.h25 area_id Map(const char *name, addr_t physicalAddress, size_t numBytes,
60 AreaKeeper::Map(const char *name, addr_t physicalAddress, size_t numBytes, argument
63 fArea = map_physical_memory(name, physicalAddress, numBytes, spec,
/haiku/headers/private/graphics/intel_extreme/
H A DAreaKeeper.h26 size_t numBytes, uint32 spec, uint32 protection,
61 AreaKeeper::Map(const char *name, phys_addr_t physicalAddress, size_t numBytes, argument
64 fArea = map_physical_memory(name, physicalAddress, numBytes, spec,
/haiku/src/tests/system/network/
H A Dtcp_client.c60 int numBytes; local
64 if ((numBytes = recv(sockfd, buffer, sizeof(buffer) - 1, 0)) == -1) {
71 buffer[numBytes] = '\0';
/haiku/src/add-ons/kernel/drivers/disk/virtual/remote_disk/
H A Dremote_disk.cpp166 remote_disk_read(void* cookie, off_t position, void* buffer, size_t* numBytes) argument
169 *numBytes));
174 ssize_t bytesRead = device->remoteDisk->ReadAt(position, buffer, *numBytes);
176 *numBytes = 0;
181 *numBytes = bytesRead;
189 size_t* numBytes)
192 *numBytes));
198 *numBytes);
200 *numBytes = 0;
205 *numBytes
188 remote_disk_write(void* cookie, off_t position, const void* buffer, size_t* numBytes) argument
[all...]
/haiku/src/libs/compat/freebsd_network/
H A Ddevice.c109 compat_read(void *cookie, off_t position, void *buffer, size_t *numBytes) argument
118 // buffer, *numBytes);
132 *numBytes = 0;
140 length = min_c(max_c((size_t)mb->m_pkthdr.len, 0), *numBytes);
145 *numBytes = 0;
151 *numBytes = length;
160 size_t *numBytes)
166 // buffer, *numBytes);
168 if (*numBytes > MHLEN) {
170 *numBytes
159 compat_write(void *cookie, off_t position, const void *buffer, size_t *numBytes) argument
[all...]
/haiku/src/tests/kits/app/bmessage/
H A DMessageFlattenableItemTest.h36 virtual status_t Flatten(void* buffer, ssize_t numBytes) const;
38 ssize_t numBytes);
53 status_t MyFlattenableType::Flatten(void* buffer, ssize_t numBytes) const
59 if (numBytes != FlattenedSize())
69 ssize_t numBytes)
79 fData.assign((const char*)buffer, numBytes - 1);
68 Unflatten(type_code code, const void* buffer, ssize_t numBytes) argument
/haiku/src/servers/app/
H A DServerFont.h119 int32 numBytes, int32 numChars,
122 status_t GetEdges(const char charArray[], int32 numBytes,
127 int32 numBytes, int32 numChars,
133 int32 numBytes, int32 numChars,
138 int32 numBytes, int32 numChars,
150 int32 numBytes,
/haiku/src/apps/remotedesktop/
H A DRemoteView.h41 virtual void KeyDown(const char *bytes, int32 numBytes);
42 virtual void KeyUp(const char *bytes, int32 numBytes);
50 const char *bytes, int32 numBytes);

Completed in 326 milliseconds

1234567891011