Searched defs:read_fn (Results 1 - 5 of 5) sorted by relevance
/external/puffin/src/ |
H A D | 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));
|
H A D | 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 { 45 GetByteReaderFn( size_t length, std::function<bool(uint8_t*, size_t)>* read_fn) argument
|
H A D | 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)); 33 WriteBytes( size_t nbytes, const std::function<bool(uint8_t* buffer, size_t count)>& read_fn) argument
|
H A D | puff_data.h | 44 std::function<bool(uint8_t* buffer, size_t count)> read_fn; member in struct:puffin::PuffData
|
/external/vboot_reference/futility/ |
H A D | 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) 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