Anonymous
public cpp v1 · immutable struct PeerStats { std::string username; unsigned int speed; unsigned int downloads; unsigned int files; unsigned int dirs; } case Moo::M_PEER_STATS: { PeerStats stats; stats.username = Moo::IO::unpack_string (read_data, offset); stats.speed = Moo::IO::unpack_uint (read_data, offset); stats.downloads = Moo::IO::unpack_uint (read_data, offset); stats.files = Moo::IO::unpack_uint (read_data, offset); stats.dirs = Moo::IO::unpack_uint (read_data, offset); break; }