#include "hpcxx_byte.h" hpcxx_byte :: hpcxx_byte() {} hpcxx_byte :: hpcxx_byte(unsigned char b) { this->byte = b; } hpcxx_byte :: ~hpcxx_byte() {} ostream &operator<<(ostream& output, hpcxx_byte& hb) { output << " hpcxx_byte:: " << (int)(hb.byte) << " " ; return output; } void hpcxx_pack(HPCxx_Buffer &buffer, hpcxx_byte *data, int count) { for (int i=0; i < count; i++ ) { nexus_put_byte(buffer.impl_.buffer_ , &(data->byte), 1); } } void hpcxx_unpack(HPCxx_Buffer &buffer, hpcxx_byte *data, int count) { for (int i=0; i < count; i++ ) { nexus_get_byte(buffer.impl_.buffer_, &(data->byte), 1); } }