24 #ifndef SKA_CHEETAH_PSRDADA_RAWBYTES_H 25 #define SKA_CHEETAH_PSRDADA_RAWBYTES_H 56 RawBytes(
char *
ptr, std::size_t total, std::size_t used=0);
86 std::size_t _total_bytes;
87 std::size_t _used_bytes;
95 #endif // SKA_CHEETAH_PSRDADA_RAWBYTES_H Class for wrapping a raw pointer to a buffer of shared memory.
char * ptr() const
Get a raw pointer to the start of the buffer.
std::size_t total_bytes() const
Get the total number of bytes in the buffer.
Some limits and constants for FLDO.
std::size_t used_bytes() const
Get the number of currently used bytes in the buffer.
RawBytes(char *ptr, std::size_t total, std::size_t used=0)
Create a new RawBytes instance.