LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

NetworkWriter.WriteBytesAndSize

public void WriteBytesAndSize(byte[] buffer, int count);

Parameters

bufferArray of bytes to write.
countNumber of bytes from the array to write.

Description

This writes a 16-bit count and an array of bytes of that length to the stream.