39 std::string errmsg =
"header of type " + this->
description.
as<std::string>() +
" with invalid ";
43 throw std::runtime_error(errmsg);
52 throw std::runtime_error(
"inconsistent header stack, no O2 header at expected offset " +
std::to_string(this->headerSize) +
"for header of type " + this->
description.as<std::string>());
67 (that.
itg[0] == dataDescription.itg[0] &&
68 that.
itg[1] == dataDescription.itg[1]));
75 that == payloadSerializationMethod);
89 : dataDescription(), dataOrigin()
100 dataDescription !=
other.dataDescription) {
110 unsigned char buff[17];
111 memset(&buff[0],
'\0', 17);
112 const std::byte* addr =
reinterpret_cast<const std::byte*
>(voidaddr);
115 if (desc !=
nullptr) {
116 printf(
"%s, ", desc);
118 printf(
"%zu bytes:",
len);
121 printf(
" output limited to %zu bytes\n",
len);
127 if (addr ==
nullptr) {
128 printf(
" nullptr, size: %zu\n",
len);
133 for (
i = 0;
i <
len;
i++) {
138 printf(
" %s\n", buff);
143 printf(
" %p ", &addr[
i]);
147 printf(
" %02x", (
char)addr[
i]);
150 if (((
char)addr[
i] < 0x20) || ((
char)addr[
i] > 0x7e)) {
153 buff[
i % 16] = (
char)addr[
i];
155 buff[(
i % 16) + 1] =
'\0';
160 while ((
i % 16) != 0) {
167 printf(
" %s\n", buff);
header::DataDescription description
GLenum GLenum GLsizei len
constexpr o2::header::DataOrigin gDataOriginAny
constexpr o2::header::DataDescription gDataDescriptionAny
std::string to_string(gsl::span< T, Size > span)
VectorOfTObjectPtrs other