Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 19 of 19) sorted by relevance

/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/
A Decc_platform_specific.c91 ssize_t bytes_read = read(fd, ptr, left); in default_CSPRNG() local
92 if (bytes_read <= 0) { // read failed in default_CSPRNG()
96 left -= bytes_read; in default_CSPRNG()
97 ptr += bytes_read; in default_CSPRNG()
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/
A Daudio_provider.cc192 size_t bytes_read; in CaptureSamples() local
222 else if (bytes_written < bytes_read) in CaptureSamples()
299 int32_t bytes_read = in GetAudioSamples() local
305 int32_t bytes_read = in GetAudioSamples() local
311 LOG("bytes_read : %d\n", bytes_read); in GetAudioSamples()
319 if (bytes_read < 0) in GetAudioSamples()
323 else if (bytes_read < new_samples_to_get * sizeof(int16_t)) in GetAudioSamples()
329 bytes_read, new_samples_to_get * sizeof(int16_t)); in GetAudioSamples()
/AliOS-Things-master/components/SDL2/src/video/wayland/
A DSDL_waylanddatamanager.c94 ssize_t bytes_read = 0; in read_pipe() local
100 bytes_read = SDL_SetError("Pipe timeout"); in read_pipe()
102 bytes_read = SDL_SetError("Pipe select error"); in read_pipe()
104 bytes_read = read(fd, temp, sizeof(temp)); in read_pipe()
107 if (bytes_read > 0) { in read_pipe()
109 *total_length += bytes_read; in read_pipe()
124 bytes_read = SDL_OutOfMemory(); in read_pipe()
126 SDL_memcpy((Uint8*)output_buffer + pos, temp, bytes_read); in read_pipe()
136 return bytes_read; in read_pipe()
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/
A Dtif_unix.c73 size_t bytes_read; in _tiffReadProc() local
81 for (bytes_read=0; bytes_read < bytes_total; bytes_read+=count) in _tiffReadProc()
83 char *buf_offset = (char *) buf+bytes_read; in _tiffReadProc()
84 size_t io_size = bytes_total-bytes_read; in _tiffReadProc()
93 return (tmsize_t) bytes_read; in _tiffReadProc()
A Dtif_read.c74 tmsize_t bytes_read; in TIFFReadAndRealloc() local
109 bytes_read = TIFFReadFile(tif, in TIFFReadAndRealloc()
111 already_read += bytes_read; in TIFFReadAndRealloc()
112 if (bytes_read != to_read) { in TIFFReadAndRealloc()
A Dtif_dirread.c799 tmsize_t bytes_read; in TIFFReadDirEntryDataAndRealloc() local
822 bytes_read = TIFFReadFile(tif, in TIFFReadDirEntryDataAndRealloc()
824 already_read += bytes_read; in TIFFReadDirEntryDataAndRealloc()
825 if (bytes_read != to_read) { in TIFFReadDirEntryDataAndRealloc()
/AliOS-Things-master/components/SDL2/src/hidapi/linux/
A Dhid.c768 int bytes_read; in hid_read_timeout() local
796 bytes_read = read(dev->device_handle, data, length); in hid_read_timeout()
797 if (bytes_read < 0 && (errno == EAGAIN || errno == EINPROGRESS)) in hid_read_timeout()
798 bytes_read = 0; in hid_read_timeout()
800 if (bytes_read >= 0 && in hid_read_timeout()
805 memmove(data, data+1, bytes_read); in hid_read_timeout()
806 bytes_read--; in hid_read_timeout()
809 return bytes_read; in hid_read_timeout()
/AliOS-Things-master/components/SDL2/src/hidapi/mac/
A Dhid.c907 int bytes_read = -1; in hid_read_timeout() local
915 bytes_read = return_data(dev, data, length); in hid_read_timeout()
921 bytes_read = -1; in hid_read_timeout()
929 bytes_read = -1; in hid_read_timeout()
940 bytes_read = return_data(dev, data, length); in hid_read_timeout()
943 bytes_read = -1; in hid_read_timeout()
962 bytes_read = return_data(dev, data, length); in hid_read_timeout()
964 bytes_read = 0; in hid_read_timeout()
966 bytes_read = -1; in hid_read_timeout()
970 bytes_read = 0; in hid_read_timeout()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/
A Djdmarker.c105 unsigned int bytes_read; /* data bytes read so far in marker */ member
881 unsigned int bytes_read, data_length; in save_marker() local
910 marker->bytes_read = 0; in save_marker()
911 bytes_read = 0; in save_marker()
915 bytes_read = data_length = 0; in save_marker()
920 bytes_read = marker->bytes_read; in save_marker()
922 data = cur_marker->data + bytes_read; in save_marker()
925 while (bytes_read < data_length) { in save_marker()
927 marker->bytes_read = bytes_read; in save_marker()
931 while (bytes_read < data_length && bytes_in_buffer > 0) { in save_marker()
[all …]
/AliOS-Things-master/components/SDL2/src/hidapi/windows/
A Dhid.c784 DWORD bytes_read = 0; in hid_read_timeout() local
796 …res = ReadFile(dev->device_handle, dev->read_buf, (DWORD)dev->input_report_length, &bytes_read, &d… in hid_read_timeout()
822 res = GetOverlappedResult(dev->device_handle, &dev->ol, &bytes_read, TRUE/*wait*/); in hid_read_timeout()
827 if (res && bytes_read > 0) { in hid_read_timeout()
833 bytes_read--; in hid_read_timeout()
834 copy_len = length > bytes_read ? bytes_read : length; in hid_read_timeout()
839 copy_len = length > bytes_read ? bytes_read : length; in hid_read_timeout()
/AliOS-Things-master/components/SDL2/src/hidapi/libusb/
A Dhid.c1179 int bytes_read = -1; in hid_read_timeout() local
1194 bytes_read = return_data(dev, data, length); in hid_read_timeout()
1201 bytes_read = -1; in hid_read_timeout()
1211 bytes_read = return_data(dev, data, length); in hid_read_timeout()
1222 bytes_read = return_data(dev, data, length); in hid_read_timeout()
1232 bytes_read = 0; in hid_read_timeout()
1237 bytes_read = -1; in hid_read_timeout()
1244 bytes_read = 0; in hid_read_timeout()
1251 return bytes_read; in hid_read_timeout()
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/iostream3/
A Dzfstream.cc197 int bytes_read = gzread(file, buffer, buffer_size); in underflow() local
199 if (bytes_read <= 0) in underflow()
206 this->setg(buffer, buffer, buffer + bytes_read); in underflow()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmachine_uart.c317 mp_uint_t bytes_read = 0; in machine_uart_read() local
319 status = aos_hal_uart_recv_II(&self->dev, buf_in, size, &bytes_read, self->timeout); in machine_uart_read()
328 return bytes_read; in machine_uart_read()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmachine_uart.c311 mp_uint_t bytes_read = 0; in machine_uart_read() local
313 status = aos_hal_uart_recv_II(&self->dev, buf_in, size, &bytes_read, self->timeout); in machine_uart_read()
322 return bytes_read; in machine_uart_read()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmachine_uart.c311 mp_uint_t bytes_read = 0; in machine_uart_read() local
313 status = aos_hal_uart_recv_II(&self->dev, buf_in, size, &bytes_read, self->timeout); in machine_uart_read()
322 return bytes_read; in machine_uart_read()
/AliOS-Things-master/components/SDL2/src/image/
A DIMG_UIImage.m117 int bytes_read = 0;
128 bytes_read = SDL_RWread(rw_ops, temp_buffer, 1, block_size);
129 [ns_data appendBytes:temp_buffer length:bytes_read];
130 } while(bytes_read > 0);
A DIMG_ImageIO.m619 int bytes_read = 0;
627 bytes_read = SDL_RWread(rw_ops, temp_buffer, 1, block_size);
628 [ns_data appendBytes:temp_buffer length:bytes_read];
629 } while (bytes_read > 0);
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/tools/
A Dtiffcrop.c3685 int32 bytes_read = 0; in readContigStripsIntoBuffer() local
3698 bytes_read = TIFFReadEncodedStrip (in, strip, bufp, -1); in readContigStripsIntoBuffer()
3699 rows = bytes_read / scanline_size; in readContigStripsIntoBuffer()
3700 if ((strip < (nstrips - 1)) && (bytes_read != (int32)stripsize)) in readContigStripsIntoBuffer()
3702 (int)strip + 1, (unsigned long) bytes_read, in readContigStripsIntoBuffer()
3705 if (bytes_read < 0 && !ignore) { in readContigStripsIntoBuffer()
4771 int32 bytes_read = 0; in readSeparateStripsIntoBuffer() local
4859 bytes_read = TIFFReadEncodedStrip (in, strip, buff, stripsize); in readSeparateStripsIntoBuffer()
4860 rows_this_strip = bytes_read / src_rowsize; in readSeparateStripsIntoBuffer()
4861 if (bytes_read < 0 && !ignore) in readSeparateStripsIntoBuffer()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/
A DREADME758 VP8StatusCode status = WebPIAppend(idec, input, bytes_read);
760 bytes_remaining -= bytes_read;

Completed in 49 milliseconds