기술 자료

Unity Engine

Unity Engine

WriteBytes

Copy NativeArray of bytes into the writer's data buffer.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

WriteBytes(NativeArray<byte>)

Copy NativeArray of bytes into the writer's data buffer.
public bool WriteBytes(NativeArray<byte> value)

Parameters

Source byte array

Returns

Type

Description

boolWhether the write was successful

WriteBytes(Span<byte>)

Copy
Span
of bytes into the writer's data buffer.
public bool WriteBytes(Span<byte> value)

Parameters

Source byte span

Returns

Type

Description

boolWhether the write was successful