1
0
Fork 0

minor optimization for streaming the native type

This commit is contained in:
Kevin Matz 2022-05-31 15:25:07 -04:00
parent 53868f7162
commit a4978c514e
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}