Documentation

Unity Engine

Unity Engine

NativeStream.Writer

Writes data into a buffer of a NativeStream.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Struct
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public struct NativeStream.Writer

Remarks

An individual writer can only be used for one buffer of one stream. Do not create more than one writer for an individual buffer.

Properties

Property

Description

ForEachCountThe number of buffers in the stream of this writer.

Methods

Method

Description

AllocateAllocate space in a buffer.
BeginForEachIndexReadies this writer to write to a particular buffer of the stream.
EndForEachIndexReadies the buffer written by this writer for reading.
PatchMinMaxRangeFor internal use only.
WriteWrite a value to a buffer.