HomeSort by relevance Sort by last modified time
    Searched refs:read_fn (Results 1 - 18 of 18) sorted by null

  /external/vboot_reference/futility/
dump_kernel_config_lib.c 54 /* Skip the stream by calling |read_fn| many times. Return 0 on success. */
55 static int SkipWithRead(void *ctx, ReadFullyFn read_fn, size_t count)
64 if (read_fn(ctx, buf, to_read) != to_read) {
72 static char *FindKernelConfigFromStream(void *ctx, ReadFullyFn read_fn,
81 if (read_fn(ctx, &key_block, sizeof(key_block)) != sizeof(key_block)) {
86 if (to_skip < 0 || SkipWithRead(ctx, read_fn, to_skip)) {
93 if (read_fn(ctx, &preamble, sizeof(preamble)) != sizeof(preamble)) {
98 if (to_skip < 0 || SkipWithRead(ctx, read_fn, to_skip)) {
116 if (to_skip < 0 || SkipWithRead(ctx, read_fn, to_skip)) {
126 if (read_fn(ctx, ret, CROS_CONFIG_SIZE) != CROS_CONFIG_SIZE)
145 ReadFullyFn read_fn = ReadFullyWithRead; local
    [all...]
  /external/puffin/src/
bit_io_unittest.cc 48 std::function<bool(uint8_t*, size_t)> read_fn; local
49 ASSERT_TRUE(br.GetByteReaderFn(2, &read_fn));
50 ASSERT_TRUE(read_fn(tmp, 2));
52 ASSERT_TRUE(read_fn(tmp, 0));
53 ASSERT_FALSE(read_fn(tmp, 1));
puff_data.h 44 std::function<bool(uint8_t* buffer, size_t count)> read_fn; member in struct:puffin::PuffData
bit_reader.cc 46 size_t length, std::function<bool(uint8_t*, size_t)>* read_fn) {
51 *read_fn = [this, length](uint8_t* buffer, size_t count) mutable {
bit_reader.h 63 std::function<bool(uint8_t* buffer, size_t count)>* read_fn) = 0;
97 std::function<bool(uint8_t* buffer, size_t count)>* read_fn) override;
bit_writer.cc 35 const std::function<bool(uint8_t* buffer, size_t count)>& read_fn) {
40 TEST_AND_RETURN_FALSE(read_fn(&out_buf_[index_], nbytes));
bit_writer.h 36 // |nbytes| IN The number of bytes to read using |read_fn| and write into
38 // |read_fn| IN A function to read bytes from.
41 const std::function<bool(uint8_t* buffer, size_t count)>& read_fn) = 0;
81 read_fn) override;
puff_io_unittest.cc 34 pd.read_fn = [](uint8_t* buffer, size_t count) {
56 pd.read_fn(&byte, 1);
164 pd.read_fn = [&tmp, &index](uint8_t* buffer, size_t count) {
175 // We have to refresh the read_fn function for the second insert.
196 ASSERT_TRUE(pd.read_fn(tmp3, 3));
197 ASSERT_FALSE(pd.read_fn(tmp3, 1));
205 ASSERT_TRUE(pd.read_fn(tmp3, 1));
207 ASSERT_FALSE(pd.read_fn(tmp3, 2));
345 pd.read_fn = [](uint8_t* buffer, size_t count) {
362 pd.read_fn(&byte, 1)
    [all...]
puff_reader.cc 92 pd.read_fn = [this, length](uint8_t* buffer, size_t count) mutable {
huffer.cc 64 TEST_AND_RETURN_FALSE_SET_ERROR(bw->WriteBytes(pd.length, pd.read_fn),
127 pd.read_fn(&literal, 1);
puff_writer.cc 66 pd.read_fn(&puff_buf_out_[index_], length),
70 TEST_AND_RETURN_FALSE_SET_ERROR(pd.read_fn(nullptr, length),
puffer.cc 91 br->GetByteReaderFn(pd.length, &pd.read_fn),
puffin_unittest.cc 51 pd.read_fn(start, pd.length);
  /bionic/tests/
sys_uio_test.cpp 44 void TestPreadVPwriteV(ReadFn read_fn, WriteFn write_fn) {
57 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 5));
59 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 0));
stdio_test.cpp 2085 auto read_fn = [](void*, char*, int) { return -1; }; local
2122 auto read_fn = [](void*, char*, int) { return -1; }; local
    [all...]
  /bionic/libc/stdio/
stdio.cpp 631 int (*read_fn)(void*, char*, int),
634 if (read_fn == nullptr && write_fn == nullptr) {
642 if (read_fn != nullptr && write_fn != nullptr) {
644 } else if (read_fn != nullptr) {
652 fp->_read = read_fn;
660 int (*read_fn)(void*, char*, int),
664 FILE* fp = __funopen(cookie, read_fn, write_fn, close_fn);
672 int (*read_fn)(void*, char*, int),
676 FILE* fp = __funopen(cookie, read_fn, write_fn, close_fn);
  /system/bt/osi/src/
socket.cc 206 void (*read_fn)(void*) = (read_cb != NULL) ? internal_read_ready : NULL;
210 reactor_register(reactor, socket->fd, socket, read_fn, write_fn);
  /external/autotest/client/cros/power/
power_utils.py 668 def _verify_registers(self, reg_name, read_fn, match_list):
671 r = read_fn(k)

Completed in 337 milliseconds