Lines Matching refs:size
50 size_t size = DEFAULT_SOCKET_BUFFER_SIZE; in init() local
54 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)); in init()
55 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); in init()
89 ssize_t BitTube::write(void const* vaddr, size_t size) { in write() argument
92 len = ::send(mSendFd, vaddr, size, MSG_DONTWAIT | MSG_NOSIGNAL); in write()
99 ssize_t BitTube::read(void* vaddr, size_t size) { in read() argument
102 len = ::recv(mReceiveFd, vaddr, size, MSG_DONTWAIT); in read()
134 ssize_t size = tube->write(vaddr, count * objSize); in sendObjects() local
137 LOG_ALWAYS_FATAL_IF((size >= 0) && (size % static_cast<ssize_t>(objSize)), in sendObjects()
140 count, objSize, size); in sendObjects()
143 return size < 0 ? size : size / static_cast<ssize_t>(objSize); in sendObjects()
148 ssize_t size = tube->read(vaddr, count * objSize); in recvObjects() local
151 LOG_ALWAYS_FATAL_IF((size >= 0) && (size % static_cast<ssize_t>(objSize)), in recvObjects()
154 count, objSize, size); in recvObjects()
157 return size < 0 ? size : size / static_cast<ssize_t>(objSize); in recvObjects()