53 char *__a =
const_cast<char*
> (nodePointer);
54 *
reinterpret_cast<uint16_t *
>(__a) = (uint16_t)
group;
55 *
reinterpret_cast<uint8_t *
>(__a+2) = (uint8_t)
item;
56 *
reinterpret_cast<uint8_t *
>(__a+3) = (uint8_t)
type;
57 *
reinterpret_cast<uint32_t *
>(__a+4) = 0x00000000;
61 char *__a =
const_cast<char*
> (nodePointer);
62 *
reinterpret_cast<uint32_t *
>(__a+4) =
size;
66 int size = std::get<3>(params);
67 int group = std::get<0>(params);
68 int item = std::get<1>(params);
69 int type = std::get<2>(params);
72 char *__a =
const_cast<char*
> (nodePointer);
73 *
reinterpret_cast<uint16_t *
>(__a) = (uint16_t)
group;
74 *
reinterpret_cast<uint8_t *
>(__a+2) = (uint8_t)
item;
75 *
reinterpret_cast<uint8_t *
>(__a+3) = (uint8_t)
type;
76 *
reinterpret_cast<uint32_t *
>(__a+4) = 0x00000000;
80 char *__a =
const_cast<char*
> (nodePointer);
81 *
reinterpret_cast<uint16_t *
>(__a) = (uint16_t) 0;
82 *
reinterpret_cast<uint8_t *
>(__a+2) = (uint8_t) 0;
83 *
reinterpret_cast<uint8_t *
>(__a+3) = (uint8_t) 0;
84 *
reinterpret_cast<uint8_t *
>(__a+4) = 0x00000000;
88 printf(
"hipo::node : [%5d,%5d] type = %4d, node length = %5d, format length = %6d, data length = %8d, offset = %5d, capacity = %8d\n",
int formatLength() const noexcept
int size() const noexcept
virtual void show()
Print a summary of this node to stdout.
void assign(std::tuple< int, int, int, int > params)
Re-initialize this node from a parameter tuple.
int capacity() const noexcept
int dataOffset() const noexcept
int dataLength() const noexcept
void initEmpty()
Initialize the node to an empty state.
void create(int group, int item, int type, int size)
Create a node with the given header fields and allocate storage.
void setSize(int size)
Set the total size of the node.
bool allocate(int size)
Ensure the internal buffer can hold at least size bytes.
Low-level node class for handling tagged binary data elements in HIPO structures.
Utility functions and benchmark timer for HIPO library operations.