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

/haiku/src/apps/serialconnect/libvterm/src/
H A Dutf8.h18 int nbytes = utf8_seqlen(codepoint); local
21 int b = nbytes;
28 switch(nbytes) {
37 return nbytes;
/haiku/src/add-ons/translators/shared/
H A DStreamBuffer.cpp104 // Copies up to nbytes of data from the stream into pinto
111 // nbytes, the maximum number of bytes to copy
119 StreamBuffer::Read(void *_pinto, size_t nbytes) argument
123 if (nbytes == 0)
129 size_t totalRead = min(nbytes, fLen - fPos);
133 nbytes -= totalRead;
135 while (nbytes > 0) {
140 size_t left = min(nbytes, fLen - fPos);
144 nbytes -= left;
156 // Copies up to nbytes o
165 Write(void *pinto, size_t nbytes) argument
[all...]
/haiku/src/build/libroot/
H A Dfs_freebsd.h13 ssize_t haiku_freebsd_read(int fd, void *buf, size_t nbytes);
14 ssize_t haiku_freebsd_write(int fd, const void *buf, size_t nbytes);
H A Dfs_freebsd.cpp25 haiku_freebsd_read(int fd, void *buf, size_t nbytes) argument
32 return read(fd, buf, nbytes); // Is a file! Good :)
43 off_t nbytesDiff = (nbytes - seekDiff) % sectorSize;
47 return read(fd, buf, nbytes);
48 } else if (cur % sectorSize + nbytes <= sectorSize) {
60 memcpy((char*)buf, tmpBlock + cur % sectorSize, nbytes);
63 if (lseek(fd, -sectorSize + (cur % sectorSize) + nbytes, SEEK_CUR)
70 return nbytes;
94 if ((nbytes - seekDiff) >= sectorSize) {
95 if (read(fd, ((char*)buf) + seekDiff, nbytes
125 haiku_freebsd_write(int fd, const void *buf, size_t nbytes) argument
[all...]
/haiku/src/tests/system/network/icmp/
H A Dicmp_dumper.cpp37 ssize_t nbytes; local
39 while ((nbytes = recvfrom(sockfd, buf, MAXLEN, 0,
47 printf("Received %zd bytes of ICMP message from %s\n", nbytes, host);
51 if ((icmpLen = nbytes - ipLen) < 8) {
/haiku/src/kits/storage/mime/
H A DTextSnifferAddon.cpp18 const unsigned char *buf, size_t nbytes, BMimeType* mimeType);
145 size_t nbytes, BMimeType* mimeType)
173 if ((nbuf = (unsigned char*)malloc((nbytes + 1) * sizeof(nbuf[0]))) == NULL)
175 if ((ubuf = (my_unichar*)malloc((nbytes + 1) * sizeof(ubuf[0]))) == NULL)
184 if (looks_ascii(buf, nbytes, ubuf, &ulen)) {
188 } else if (looks_utf8(buf, nbytes, ubuf, &ulen)) {
192 } else if ((i = looks_unicode(buf, nbytes, ubuf, &ulen)) != 0) {
200 } else if (looks_latin1(buf, nbytes, ubuf, &ulen)) {
204 } else if (looks_extended(buf, nbytes, ubuf, &ulen)) {
209 from_ebcdic(buf, nbytes, nbu
144 file_ascmagic(DatabaseLocation* databaseLocation, const unsigned char *buf, size_t nbytes, BMimeType* mimeType) argument
469 looks_ascii(const unsigned char *buf, size_t nbytes, my_unichar *ubuf, size_t *ulen) argument
489 looks_latin1(const unsigned char *buf, size_t nbytes, my_unichar *ubuf, size_t *ulen) argument
508 looks_extended(const unsigned char *buf, size_t nbytes, my_unichar *ubuf, size_t *ulen) argument
528 looks_utf8(const unsigned char *buf, size_t nbytes, my_unichar *ubuf, size_t *ulen) argument
590 looks_unicode(const unsigned char *buf, size_t nbytes, my_unichar *ubuf, size_t *ulen) argument
711 from_ebcdic(const unsigned char *buf, size_t nbytes, unsigned char *out) argument
[all...]
/haiku/headers/os/net/
H A Dnet_settings.h39 const char* name, char* value, unsigned nbytes);
/haiku/headers/compatibility/bsd/
H A Dstdlib.h25 void arc4random_buf(void *buf, size_t nbytes);
/haiku/src/add-ons/translators/jpeg/
H A Dbe_jdatasrc.cpp121 size_t nbytes; local
123 nbytes = src->infile->Read(src->buffer, INPUT_BUF_SIZE);
125 if (nbytes <= 0) {
132 nbytes = 2;
136 src->pub.bytes_in_buffer = nbytes;
/haiku/src/add-ons/kernel/drivers/disk/virtual/nbd/
H A Dnbd-server.py40 def recv(self, nbytes):
42 while len(rv) < nbytes:
43 more = self.sock.recv(nbytes - len(rv))
44 if more == '': raise Error(nbytes)
54 def recv(self, nbytes):
55 print "recv(%d) =" % nbytes,
56 rv = self.sock.recv(nbytes)
/haiku/src/system/libnetwork/
H A Dr5_compatibility.cpp33 char *_netconfig_find(const char *heaading, const char *name, char *value, int nbytes);
124 _netconfig_find(const char *heading, const char *name, char *value, int nbytes) argument
126 return find_net_setting(NULL, heading, name, value, nbytes);
/haiku/src/libs/stdc++/legacy/
H A Dstrerror.c503 int nbytes; local
524 nbytes = num_error_names * sizeof (char *);
525 if ((error_names = (const char **) malloc (nbytes)) != NULL)
527 memset (error_names, 0, nbytes);
542 nbytes = num_error_names * sizeof (char *);
543 if ((sys_errlist = (const char **) malloc (nbytes)) != NULL)
545 memset (sys_errlist, 0, nbytes);
/haiku/src/apps/poorman/libhttpd/
H A Dlibhttpd.h298 extern int httpd_read_fully( int fd, void* buf, size_t nbytes );
301 extern int httpd_write_fully( int fd, const char* buf, size_t nbytes );
H A Dlibhttpd.c4251 httpd_read_fully( int fd, void* buf, size_t nbytes )
4256 while ( nread < nbytes )
4260 r = read( fd, (char*) buf + nread, nbytes - nread );
4279 httpd_write_fully( int fd, const char* buf, size_t nbytes )
4284 while ( nwritten < nbytes )
4288 r = write( fd, buf + nwritten, nbytes - nwritten );
/haiku/src/libs/mapm/
H A Dmapm_set.c104 int len, ii, nbytes; local
148 nbytes = (len + 1) >> 1;
151 for (ii=0; ii < nbytes; ii++)
H A Dmapmfmul.c307 void M_fmul_split(UCHAR *x1, UCHAR *x0, UCHAR *xin, int nbytes) argument
309 memcpy(x1, xin, nbytes);
310 memcpy(x0, (xin + nbytes), nbytes);
H A Dmapm_fft.c112 * multiply 'uu' by 'vv' with nbytes each
113 * yielding a 2*nbytes result in 'ww'.
123 void M_fast_mul_fft(UCHAR *ww, UCHAR *uu, UCHAR *vv, int nbytes) argument
148 nn = nbytes;
149 nn2 = nbytes >> 1;
/haiku/src/libs/uuid/
H A Dgen_uuid.c108 static void get_random_bytes(void *buf, int nbytes) argument
110 int i, n = nbytes, fd = get_random_fd();
132 for (cp = buf, i = 0; i < nbytes; i++)
140 for (cp = buf, i = 0; i < nbytes; i++)
/haiku/src/system/libroot/posix/glibc/extensions/
H A Dobstack.c463 register int nbytes = 0; local
467 nbytes += lp->limit - (char *) lp;
469 return nbytes;
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A DInode.cpp127 uint64 nbytes = size; // allocated size local
129 nbytes = (size / volume->SectorSize() + 1) * volume->SectorSize();
136 inode.nbytes = B_HOST_TO_LENDIAN_INT64(nbytes);
H A Dbtrfs.h280 uint64 nbytes; member in struct:btrfs_inode
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8363/dev/mwl/
H A Dmwlhal.c2539 uint32_t blocksize, nbytes, fmsize; local
2604 nbytes = ntries = 0; /* NB: silence compiler */
2616 fp += nbytes;
2634 nbytes = blocksize;
2635 if (!mwlSendBlock2(mh, fp, nbytes)) {
2642 nbytes = ep - fp;
2643 if (nbytes > FW_DOWNLOAD_BLOCK_SIZE)
2644 nbytes = FW_DOWNLOAD_BLOCK_SIZE;
2645 if (!mwlSendBlock(mh, FW_DOWNLOAD_BLOCK_SIZE, fp, nbytes)) {
2649 fp += nbytes;
[all...]
/haiku/headers/posix/
H A Dunistd.h482 extern void swab(const void *src, void *dest, ssize_t nbytes);
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/
H A Dif_ath_tx.c5376 int nbytes = 0; local
5404 nbytes += bf->bf_state.bfs_pktlen;
5405 if (nbytes >= ATH_AGGR_MAXSIZE)
5418 return MIN(nbytes, ATH_AGGR_MAXSIZE);
/haiku/src/build/libgnuregex/
H A Dregex.c1833 unsigned nbytes = 10 + (upper_bound > 1) * 10;
1835 GET_BUFFER_SPACE (nbytes);
1824 unsigned nbytes = 10 + (upper_bound > 1) * 10; local

Completed in 379 milliseconds