Home
last modified time | relevance | path

Searched refs:read_fn (Results 1 – 15 of 15) sorted by relevance

/external/vboot_reference/futility/
Ddump_kernel_config_lib.c55 static int SkipWithRead(void *ctx, ReadFullyFn read_fn, size_t count) in SkipWithRead() argument
64 if (read_fn(ctx, buf, to_read) != to_read) { in SkipWithRead()
72 static char *FindKernelConfigFromStream(void *ctx, ReadFullyFn read_fn, in FindKernelConfigFromStream() argument
81 if (read_fn(ctx, &key_block, sizeof(key_block)) != sizeof(key_block)) { in FindKernelConfigFromStream()
86 if (to_skip < 0 || SkipWithRead(ctx, read_fn, to_skip)) { in FindKernelConfigFromStream()
93 if (read_fn(ctx, &preamble, sizeof(preamble)) != sizeof(preamble)) { in FindKernelConfigFromStream()
98 if (to_skip < 0 || SkipWithRead(ctx, read_fn, to_skip)) { in FindKernelConfigFromStream()
116 if (to_skip < 0 || SkipWithRead(ctx, read_fn, to_skip)) { in FindKernelConfigFromStream()
126 if (read_fn(ctx, ret, CROS_CONFIG_SIZE) != CROS_CONFIG_SIZE) { in FindKernelConfigFromStream()
145 ReadFullyFn read_fn = ReadFullyWithRead; in FindKernelConfig() local
[all …]
/external/puffin/src/
Dbit_io_unittest.cc48 std::function<bool(uint8_t*, size_t)> read_fn; in TEST() local
49 ASSERT_TRUE(br.GetByteReaderFn(2, &read_fn)); in TEST()
50 ASSERT_TRUE(read_fn(tmp, 2)); in TEST()
52 ASSERT_TRUE(read_fn(tmp, 0)); in TEST()
53 ASSERT_FALSE(read_fn(tmp, 1)); in TEST()
Dpuff_io_unittest.cc32 pd.read_fn = [](uint8_t* buffer, size_t count) { in TestLiteralLength()
54 pd.read_fn(&byte, 1); in TestLiteralLength()
161 pd.read_fn = [&tmp, &index](uint8_t* buffer, size_t count) { in TEST()
193 ASSERT_TRUE(pd.read_fn(tmp3, 3)); in TEST()
194 ASSERT_FALSE(pd.read_fn(tmp3, 1)); in TEST()
202 ASSERT_TRUE(pd.read_fn(tmp3, 1)); in TEST()
204 ASSERT_FALSE(pd.read_fn(tmp3, 2)); in TEST()
337 pd.read_fn = [](uint8_t* buffer, size_t count) { in TEST()
354 pd.read_fn(&byte, 1); in TEST()
387 pd.read_fn(&byte, 1); in TEST()
[all …]
Dbit_writer.cc35 const std::function<bool(uint8_t* buffer, size_t count)>& read_fn) { in WriteBytes() argument
40 TEST_AND_RETURN_FALSE(read_fn(&out_buf_[index_], nbytes)); in WriteBytes()
Dbit_writer.h41 const std::function<bool(uint8_t* buffer, size_t count)>& read_fn) = 0;
81 read_fn) override;
Dbit_reader.cc46 size_t length, std::function<bool(uint8_t*, size_t)>* read_fn) { in GetByteReaderFn() argument
51 *read_fn = [this, length](uint8_t* buffer, size_t count) mutable { in GetByteReaderFn()
Dbit_reader.h63 std::function<bool(uint8_t* buffer, size_t count)>* read_fn) = 0;
100 std::function<bool(uint8_t* buffer, size_t count)>* read_fn) override;
Dpuff_writer.cc63 TEST_AND_RETURN_FALSE(pd.read_fn(&puff_buf_out_[index_], length)); in Insert()
66 TEST_AND_RETURN_FALSE(pd.read_fn(nullptr, length)); in Insert()
Dhuffer.cc56 TEST_AND_RETURN_FALSE(bw->WriteBytes(pd.length, pd.read_fn)); in HuffDeflate()
110 pd.read_fn(&literal, 1); in HuffDeflate()
Dpuff_data.h44 std::function<bool(uint8_t* buffer, size_t count)> read_fn; member
Dpuff_reader.cc85 pd.read_fn = [this, length](uint8_t* buffer, size_t count) mutable { in GetNext()
Dpuffer.cc97 TEST_AND_RETURN_FALSE(br->GetByteReaderFn(pd.length, &pd.read_fn)); in PuffDeflate()
Dpuffin_unittest.cc60 pd.read_fn(start, pd.length); in DecompressPuff()
/external/autotest/client/cros/power/
Dpower_utils.py740 def _verify_registers(self, reg_name, read_fn, match_list): argument
743 r = read_fn(k)
/external/tensorflow/tensorflow/core/platform/cloud/
Dgcs_file_system.cc292 GcsRandomAccessFile(const string& filename, ReadFn read_fn) in GcsRandomAccessFile() argument
293 : filename_(filename), read_fn_(std::move(read_fn)) {} in GcsRandomAccessFile()
322 ReadFn read_fn) in BufferedGcsRandomAccessFile() argument
324 read_fn_(std::move(read_fn)), in BufferedGcsRandomAccessFile()