Documentation

Unity Engine

Unity Engine

WriteBytesUnsafe(ref DataStreamWriter, byte*, int)

Appends a specified number of bytes from the buffer to the data stream.
Read time 1 minuteLast updated a month ago

Definition

WriteBytesUnsafe(DataStreamWriter, byte*, int)

public static bool WriteBytesUnsafe(this ref DataStreamWriter writer, byte* data, int bytes)

Parameters

Data stream writer.

data

Pointer to the data.

bytes

A positive number of bytes to write.

Returns

Type

Description

boolWhether the write was successful