Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

Writer

struct in Unity.Collections.LowLevel.Unsafe

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Writes data into a buffer of an UnsafeStream.

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
ForEachCount The number of buffers in the stream of this writer.

Public Methods

Method Description
Allocate Allocate space in a buffer.
BeginForEachIndex Readies this writer to write to a particular buffer of the stream.
EndForEachIndex Readies the buffer written by this writer for reading.
Write Write a value to a buffer.