1
0

Added cByteBuffer::WriteBEUShort().

This commit is contained in:
madmaxoft
2014-09-25 20:46:50 +02:00
parent e751f4ffe3
commit 8f4cc27e39
3 changed files with 15 additions and 1 deletions

View File

@@ -547,6 +547,19 @@ bool cByteBuffer::WriteBEShort(short a_Value)
bool cByteBuffer::WriteBEUShort(unsigned short a_Value)
{
CHECK_THREAD;
CheckValid();
PUTBYTES(2);
u_short Converted = htons((u_short)a_Value);
return WriteBuf(&Converted, 2);
}
bool cByteBuffer::WriteBEInt(int a_Value)
{
CHECK_THREAD;