MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / patternByte

Function patternByte

src/IO/tests/gtest_reader_executor.cpp:55–58  ·  view source on GitHub ↗

Byte value at logical offset `i` within a file: deterministic pattern.

Source from the content-addressed store, hash-verified

53
54/// Byte value at logical offset `i` within a file: deterministic pattern.
55unsigned char patternByte(size_t i)
56{
57 return static_cast<unsigned char>(i % 256);
58}
59
60class ReaderExecutorTest : public ::testing::Test
61{

Callers 2

makeFileMethod · 0.70
TEST_FFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected