4 #ifdef ROSE_ENABLE_BINARY_ANALYSIS
16 rose_addr_t offset{header->get_offset()};
19 size_t count = header->read_content(offset, &length,
sizeof(length));
20 if (count !=
sizeof(length)) {
22 ROSE_ASSERT(
false &&
"Error reading JVM bytes array length");
24 length = ByteOrder::be_to_host(length);
26 header->set_offset(offset);
29 bytes =
new char[length];
32 count = header->read_content(offset, bytes, length);
33 if (count != length) {
35 ROSE_ASSERT(
false &&
"Error reading JVM bytes array");
38 header->set_offset(offset);
47 rose_addr_t offset{header->get_offset()};
49 size_t count = header->read_content(offset, &value,
sizeof(T));
50 if (count !=
sizeof(T)) {
52 ROSE_ASSERT(
false &&
"Error reading JVM value");
54 value = ByteOrder::be_to_host(value);
55 if (advance_offset) header->set_offset(offset + count);
Represents an JVM constant pool.
SgAsmGenericHeader * get_header() const
Property: File header that owns this section.