MCPcopy Create free account
hub / github.com/google/snappy / MakePatternMaskBytes

Function MakePatternMaskBytes

snappy.cc:293–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291
292template <size_t... indexes>
293inline constexpr std::array<char, sizeof...(indexes)> MakePatternMaskBytes(
294 int index_offset, int pattern_size, index_sequence<indexes...>) {
295 return {static_cast<char>((index_offset + indexes) % pattern_size)...};
296}
297
298// Computes the shuffle control mask bytes array for given pattern-sizes and
299// returns an array.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected