pastebin

Paste Search Dynamic
Recent pastes
sizeof NodeObject
  1. #include <iostream>
  2. #include <vector>
  3. #include <array>
  4. #include <cstdint>
  5. #include <memory>
  6.  
  7. enum NodeObjectType : std::uint8_t {
  8.     hotUNKNOWN = 0,
  9.     hotLEDGER = 1,
  10.     hotACCOUNT_NODE = 3,
  11.     hotTRANSACTION_NODE = 4,
  12.     hotDUMMY = 255  // an invalid or missing object
  13. };
  14.  
  15. struct NodeObject
  16. {
  17.     std::array<std::uint8_t, 32> mHash;
  18.     std::unique_ptr<std::uint8_t[]> ptr;
  19.     std::uint32_t size;
  20. //    std::vector<std::uint8_t> mData;
  21.     NodeObjectType mType;
  22. };
  23.  
  24. int main() {
  25.         std::cout << "sizeof(NodeObject): " << sizeof(NodeObject) << "n";
  26.         return 0;
  27. }
Parsed in 0.009 seconds