Added method to wrap arrays and std::strings in byte byffer