ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/device.h
(Generate patch)

Comparing gvpe/src/device.h (file contents):
Revision 1.22 by pcg, Thu Aug 7 17:54:27 2008 UTC vs.
Revision 1.23 by root, Tue Feb 8 23:13:48 2011 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines