Searched defs:num_bytes (Results 1 - 25 of 43) sorted by relevance

12

/external/chromium/net/base/
H A Dasn1_util.cc31 const unsigned num_bytes = data[1] & 0x7f; local
32 if (num_bytes == 0 || num_bytes > 2)
34 if (in->size() < 2 + num_bytes)
37 if (num_bytes == 2) {
51 *out_header_len = 2 + num_bytes;
52 len += 2 + num_bytes;
H A Dupload_data_stream.cc31 void UploadDataStream::MarkConsumedAndFillBuffer(size_t num_bytes) { argument
32 DCHECK_LE(num_bytes, buf_len_);
35 if (num_bytes) {
36 buf_len_ -= num_bytes;
38 memmove(buf_->data(), buf_->data() + num_bytes, buf_len_);
43 current_position_ += num_bytes;
/external/jpeg/
H A Djdatasrc.c128 skip_input_data (j_decompress_ptr cinfo, long num_bytes) argument
136 if (num_bytes > 0) {
137 while (num_bytes > (long) src->pub.bytes_in_buffer) {
138 num_bytes -= (long) src->pub.bytes_in_buffer;
144 src->pub.next_input_byte += (size_t) num_bytes;
145 src->pub.bytes_in_buffer -= (size_t) num_bytes;
/external/qemu/distrib/jpeg-6b/
H A Djdatasrc.c128 skip_input_data (j_decompress_ptr cinfo, long num_bytes) argument
136 if (num_bytes > 0) {
137 while (num_bytes > (long) src->pub.bytes_in_buffer) {
138 num_bytes -= (long) src->pub.bytes_in_buffer;
144 src->pub.next_input_byte += (size_t) num_bytes;
145 src->pub.bytes_in_buffer -= (size_t) num_bytes;
/external/chromium/chrome/browser/chromeos/
H A Dexternal_metrics_unittest.cc27 int num_bytes; local
28 num_bytes = write(fd, &l, sizeof(l));
29 num_bytes = write(fd, name, strlen(name) + 1);
30 num_bytes = write(fd, value, strlen(value) + 1);
/external/chromium/net/test/
H A Dtest_server_posix.cc83 ssize_t num_bytes = HANDLE_EINTR(read(fd, buffer + bytes_read, local
85 if (num_bytes <= 0)
87 bytes_read += num_bytes;
H A Dtest_server_win.cc112 DWORD num_bytes; local
114 &num_bytes, NULL)) {
118 if (num_bytes <= 0) {
119 LOG(ERROR) << "ReadFile returned invalid byte count: " << num_bytes;
122 bytes_read += num_bytes;
/external/libnfc-nci/src/nfc/tags/
H A Drw_main.c76 void rw_main_update_tx_stats (UINT32 num_bytes, BOOLEAN is_retry) argument
78 rw_cb.stats.bytes_sent+=num_bytes;
136 void rw_main_update_rx_stats (UINT32 num_bytes) argument
138 rw_cb.stats.bytes_received+=num_bytes;
/external/srec/srec/EventLog/src/
H A DEventLog.c136 ESR_ReturnCode SR_EventLogAudioWrite(SR_EventLog* self, void* buffer, size_t num_bytes) argument
143 return self->audioWrite(self, buffer, num_bytes);
/external/skia/src/images/
H A DSkJpegUtility.cpp55 static void sk_skip_input_data(j_decompress_ptr cinfo, long num_bytes) { argument
58 if (num_bytes > (long)src->bytes_in_buffer) {
59 long bytesToSkip = num_bytes - src->bytes_in_buffer;
73 src->next_input_byte += num_bytes;
74 src->bytes_in_buffer -= num_bytes;
109 static void skmem_skip_input_data(j_decompress_ptr cinfo, long num_bytes) { argument
111 // SkDebugf("xxxxxxxxxxxxxx skmem_skip_input_data called %d\n", num_bytes);
112 src->next_input_byte = (const JOCTET*)((const char*)src->next_input_byte + num_bytes);
113 src->bytes_in_buffer -= num_bytes;
/external/valgrind/main/tests/
H A Ds390x_features.c113 size_t num_bytes, file_buf_size; local
126 num_bytes = 0;
134 num_bytes += n;
138 if (n < 0) num_bytes = 0; /* read error; ignore contents */
140 if (num_bytes > file_buf_size) {
143 file_buf = malloc(num_bytes + 1);
144 n = read(fh, file_buf, num_bytes);
145 if (n < 0) num_bytes = 0;
148 file_buf[num_bytes] = '\0';
/external/webrtc/src/system_wrappers/source/
H A Dfile_impl.cc254 size_t num_bytes = fwrite(buf, 1, length, _id); local
255 if (num_bytes > 0)
257 _sizeInBytes += num_bytes;
/external/chromium/chrome/browser/net/
H A Dconnection_tester.cc308 int num_bytes; local
309 if (request->Read(unused_buffer, kReadBufferSize, &num_bytes)) {
310 OnReadCompleted(request, num_bytes);
/external/chromium/chrome/browser/sessions/
H A Dbase_session_service.cc32 int num_bytes = str.size() * sizeof(char); local
33 if (*bytes_written + num_bytes < max_bytes) {
34 *bytes_written += num_bytes;
44 int num_bytes = str.size() * sizeof(char16); local
45 if (*bytes_written + num_bytes < max_bytes) {
46 *bytes_written += num_bytes;
/external/chromium/chrome/common/
H A Dzip.cc78 int num_bytes = 0; local
81 num_bytes = unzReadCurrentFile(zip_file, buf, kZipBufSize);
82 if (num_bytes < 0) {
83 // If num_bytes < 0, then it's a specific UNZ_* error code.
86 err = num_bytes;
89 if (num_bytes > 0) {
90 if (num_bytes != stream.Write(buf, num_bytes, NULL)) {
95 } while (num_bytes > 0);
213 int num_bytes; local
[all...]
/external/chromium/crypto/
H A Drsa_private_key.cc178 int num_bytes,
180 PrependIntegerImpl(val, num_bytes, data, big_endian_);
184 int num_bytes,
190 tmp.assign(val, val + num_bytes);
198 while (start < (num_bytes - 1) && val[start] == 0x00) {
200 num_bytes--;
202 PrependBytes(val, start, num_bytes, data);
211 num_bytes++;
214 PrependTypeHeaderAndLength(kIntegerTag, num_bytes, data);
280 int num_bytes,
177 PrependInteger(uint8* val, int num_bytes, std::list<uint8>* data) argument
183 PrependIntegerImpl(uint8* val, int num_bytes, std::list<uint8>* data, bool big_endian) argument
278 PrependBytes(uint8* val, int start, int num_bytes, std::list<uint8>* data) argument
294 uint8 num_bytes = 0; local
312 PrependBitString(uint8* val, int num_bytes, std::list<uint8>* output) argument
[all...]
/external/chromium/net/proxy/
H A Dproxy_script_fetcher_impl.cc232 int num_bytes) {
234 if (ConsumeBytesRead(request, num_bytes)) {
243 int num_bytes; local
244 if (!request->Read(buf_, kBufSize, &num_bytes)) {
250 if (!ConsumeBytesRead(request, num_bytes))
256 int num_bytes) {
257 if (num_bytes <= 0) {
264 if (num_bytes + bytes_read_so_far_.size() >
271 bytes_read_so_far_.append(buf_->data(), num_bytes);
231 OnReadCompleted(URLRequest* request, int num_bytes) argument
255 ConsumeBytesRead(URLRequest* request, int num_bytes) argument
/external/chromium/net/udp/
H A Dudp_socket_win.cc251 DWORD num_bytes, flags; local
253 &num_bytes, FALSE, &flags);
255 int result = ok ? num_bytes : MapSystemError(WSAGetLastError());
257 if (!ProcessSuccessfulRead(num_bytes, recv_from_address_))
265 bool UDPSocketWin::ProcessSuccessfulRead(int num_bytes, IPEndPoint* address) { argument
267 read_bytes.Add(num_bytes);
281 DWORD num_bytes, flags; local
283 &num_bytes, FALSE, &flags);
285 int result = ok ? num_bytes : MapSystemError(WSAGetLastError());
287 ProcessSuccessfulWrite(num_bytes);
292 ProcessSuccessfulWrite(int num_bytes) argument
[all...]
/external/libnfc-nci/src/adaptation/
H A Dlibmain.c50 NFC_API extern void *nfa_mem_co_alloc(UINT32 num_bytes) argument
52 return malloc(num_bytes);
/external/qemu/distrib/libpng-1.2.19/
H A Dpng.c90 /* Tells libpng that we have already handled the first "num_bytes" bytes
92 * stream we can set num_bytes = 8 so that libpng will not attempt to read
98 png_set_sig_bytes(png_structp png_ptr, int num_bytes) argument
102 if (num_bytes > 8)
105 png_ptr->sig_bytes = (png_byte)(num_bytes < 0 ? 0 : num_bytes);
159 png_uint_32 num_bytes; local
167 num_bytes = (png_uint_32)items * size;
170 ptr = (png_voidp)png_malloc((png_structp)png_ptr, num_bytes);
177 if (num_bytes > (png_uint_3
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/fbcon/
H A DSDL_fbelo.c135 int num_bytes; local
139 num_bytes = ELO_PACKET_SIZE;
142 num_bytes = read(fd,
147 if (num_bytes < 0) {
154 while (num_bytes) {
156 SDL_memcpy(&buffer[0], &buffer[1], num_bytes-1);
165 num_bytes--;
/external/webkit/Source/WebCore/platform/image-decoders/jpeg/
H A DJPEGImageDecoder.cpp83 void skip_input_data(j_decompress_ptr jd, long num_bytes);
387 void skip_input_data(j_decompress_ptr jd, long num_bytes) argument
390 src->decoder->skipBytes(num_bytes);
/external/webkit/Tools/android/flex-2.5.4a/
H A Dmisc.c86 size_t num_bytes = element_size * size; local
88 mem = flex_alloc( num_bytes );
761 size_t num_bytes = element_size * size; local
763 new_array = flex_realloc( array, num_bytes );
/external/chromium/net/disk_cache/
H A Ddisk_format.h88 int32 num_bytes; // Total size of the stored data. member in struct:disk_cache::IndexHeader
/external/chromium/net/server/
H A Dhttp_server.cc205 void HttpServer::Connection::Shift(int num_bytes) { argument
206 recv_data_ = recv_data_.substr(num_bytes);

Completed in 3139 milliseconds

12