minor optimization for streaming the native type
This commit is contained in:
parent
53868f7162
commit
a4978c514e
|
@ -156,8 +156,8 @@ pdu_stream& pdu_stream::operator>> (pdu_stream_object& obj)
|
|||
*/
|
||||
pdu_stream& pdu_stream::operator>> (uint8_t& val)
|
||||
{
|
||||
val = readType<uint8_t>();
|
||||
return *this;
|
||||
val = get();
|
||||
return *this;
|
||||
};
|
||||
|
||||
|
||||
|
@ -216,7 +216,7 @@ pdu_stream& pdu_stream::operator>> (int8_t& val)
|
|||
*/
|
||||
pdu_stream& pdu_stream::operator<< (const int8_t& val)
|
||||
{
|
||||
writeType<int8_t>(val);
|
||||
put(val);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue