28#ifndef __SIM_BUFVAL_HH__
29#define __SIM_BUFVAL_HH__
36#include "enums/ByteOrder.hh"
48bool setUintX(std::uint64_t
val,
void *buf, std::size_t bytes,
61std::string
printByteBuf(
const void *buf, std::size_t bytes,
62 ByteOrder endian=ByteOrder::little, std::size_t chunk_size=4);
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::pair< std::string, bool > printUintX(const void *buf, std::size_t bytes, ByteOrder endian)
std::pair< std::uint64_t, bool > getUintX(const void *buf, std::size_t bytes, ByteOrder endian)
bool setUintX(std::uint64_t val, void *buf, std::size_t bytes, ByteOrder endian)
std::string printByteBuf(const void *buf, std::size_t bytes, ByteOrder endian, std::size_t chunk_size)