Commit d81431d3 authored by aligungr's avatar aligungr

uint16_t overload added to OctetString for appendOctet2 function

parent abf4ffa6
......@@ -36,6 +36,12 @@ void OctetString::appendOctet2(octet2 v)
m_data.push_back(v[1]);
}
void OctetString::appendOctet2(uint16_t v)
{
appendOctet(static_cast<uint8_t>(v >> 8 & 0xFF));
appendOctet(static_cast<uint8_t>(v & 0xFF));
}
void OctetString::appendOctet2(int v)
{
appendOctet2(octet2{v});
......
......@@ -40,6 +40,7 @@ class OctetString
void appendOctet(int v);
void appendOctet(int bigHalf, int littleHalf);
void appendOctet2(octet2 v);
void appendOctet2(uint16_t v);
void appendOctet2(int v);
void appendOctet3(octet3 v);
void appendOctet3(int v);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment