Struct ARCollaborationDataBuilder
Use this to construct an ARCollaborationData incrementally from serialized bytes.
Inherited Members
Namespace: UnityEngine.XR.ARKit
Assembly: solution.dll
Syntax
public struct ARCollaborationDataBuilder : IDisposable, IEquatable<ARCollaborationDataBuilder>
Remarks
This struct can be useful if you receive data through a stream. If you already have all the bytes, use a ARCollaborationData constructor instead. This struct represents a native resource and must be explicitly disposed when no longer needed. While this struct is not thread safe, you can construct, Dispose, and Append from any thread.
Properties
Name | Description |
---|---|
hasData | Whether the ARCollaborationDataBuilder has allocated any data. If |
length | The number of bytes owned by this struct. |
Methods
Name | Description |
---|---|
Append(byte[]) | Appends all |
Append(byte[], int, int) | Appends |
Append(NativeSlice<byte>) | Appends |
Dispose() | Releases the native resource. |
Equals(object) | IEquatable interface. Compares for equality. |
Equals(ARCollaborationDataBuilder) | IEquatable interface. Compares for equality. |
GetHashCode() | Computes a hash code suitable for use in a |
ToCollaborationData() | Converts the bytes accumulated through calls to Append(byte[], int, int) to an ARCollaborationData. The caller is responsible for disposing the returned ARCollaborationData. |
Operators
Name | Description |
---|---|
operator ==(ARCollaborationDataBuilder, ARCollaborationDataBuilder) | Compares for equality. Same as Equals(ARCollaborationDataBuilder). |
operator !=(ARCollaborationDataBuilder, ARCollaborationDataBuilder) | Compares for inequality. Same as |