WriteBytesAtOffset() public method

public WriteBytesAtOffset ( byte buffer, ushort targetOffset, ushort count ) : void
buffer byte
targetOffset ushort
count ushort
return void
Example #1
0
 public void Write(byte[] buffer, int offset, int count)
 {
     if (count > UInt16.MaxValue)
     {
         if (LogFilter.logError)
         {
             Debug.LogError("NetworkWriter Write: buffer is too large (" + count + ") bytes. The maximum buffer size is 64K bytes.");
         }
         return;
     }
     m_Buffer.WriteBytesAtOffset(buffer, (ushort)offset, (ushort)count);
 }
Example #2
0
 public void Write(byte[] buffer, int offset, int count)
 {
     m_Buffer.WriteBytesAtOffset(buffer, (ushort)offset, (ushort)count);
 }