… | |
… | |
95 | struct data_packet : net_packet |
95 | struct data_packet : net_packet |
96 | { |
96 | { |
97 | u8 data_[MAXSIZE]; |
97 | u8 data_[MAXSIZE]; |
98 | }; |
98 | }; |
99 | |
99 | |
100 | inline |
100 | inline |
101 | u8 &net_packet::operator[] (u16 offset) const |
101 | u8 &net_packet::operator[] (u16 offset) const |
102 | { |
102 | { |
103 | return ((data_packet *)this)->data_[offset]; |
103 | return ((data_packet *)this)->data_[offset]; |
104 | } |
104 | } |
105 | |
105 | |
106 | inline |
106 | inline |
107 | u8 *net_packet::at (u16 offset) const |
107 | u8 *net_packet::at (u16 offset) const |
108 | { |
108 | { |
109 | return &((*this)[offset]); |
109 | return &((*this)[offset]); |
110 | } |
110 | } |
111 | |
111 | |