文档

Unity Engine

Unity Engine

NativeStream.Writer

Writes data into a buffer of a NativeStream.
阅读时间1 分钟最后更新于 1 个月前

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.