Searched defs:read_fn (Results 1 - 5 of 5) sorted by relevance

/external/puffin/src/
H A Dbit_io_unittest.cc48 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));
H A Dbit_reader.cc46 size_t length, std::function<bool(uint8_t*, size_t)>* read_fn) {
51 *read_fn = [this, length](uint8_t* buffer, size_t count) mutable {
45 GetByteReaderFn( size_t length, std::function<bool(uint8_t*, size_t)>* read_fn) argument
H A Dbit_writer.cc35 const std::function<bool(uint8_t* buffer, size_t count)>& read_fn) {
40 TEST_AND_RETURN_FALSE(read_fn(&out_buf_[index_], nbytes));
33 WriteBytes( size_t nbytes, const std::function<bool(uint8_t* buffer, size_t count)>& read_fn) argument
H A Dpuff_data.h44 std::function<bool(uint8_t* buffer, size_t count)> read_fn; member in struct:puffin::PuffData
/external/vboot_reference/futility/
H A Ddump_kernel_config_lib.c54 /* 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) argument
64 if (read_fn(ctx, buf, to_read) != to_read) {
72 static char *FindKernelConfigFromStream(void *ctx, ReadFullyFn read_fn, argument
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(ct
145 ReadFullyFn read_fn = ReadFullyWithRead; local
[all...]

Completed in 1076 milliseconds