14 inline namespace _V1 {
18 const int NBytesForSize = 8;
19 const int NBitsInElement = 8;
20 std::uint64_t SizeInBits = 0;
23 for (
int I = 0; I < NBytesForSize; ++I)
24 SizeInBits |=
static_cast<std::uint64_t
>(Bytes[I]) << I * NBitsInElement;
26 Result.reserve(SizeInBits);
27 for (std::uint64_t I = 0; I < SizeInBits; ++I) {
28 std::uint8_t Byte = Bytes[NBytesForSize + (I / NBitsInElement)];
29 Result.push_back(Byte & (1 << (I % NBitsInElement)));
std::vector< bool > KernelArgMask
KernelArgMask createKernelArgMask(const ByteArray &Bytes)