Class HeadsetCalibrationDataRequest
Data that the editor sends to a HoloLens device during calibration
Inherited Members
Namespace: Microsoft.MixedReality.SpectatorView
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class HeadsetCalibrationDataRequest
Fields
timestamp
The editor application time when this request was created.
Declaration
public float timestamp
Field Value
| Type | Description |
|---|---|
| Single |
Methods
Serialize()
Call to serialize class data into a byte array payload for sending over a network.
Declaration
public byte[] Serialize()
Returns
| Type | Description |
|---|---|
| Byte[] | byte array payload |
SerializeAndWrite(BinaryWriter)
Call to serialize class data into a byte array that is then written to the provided writer.
Declaration
public void SerializeAndWrite(BinaryWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer | binary writer where serialized data is written |
TryDeserialize(BinaryReader, out HeadsetCalibrationDataRequest)
Call to read and deserialize a byte array paylod to create a headset calibration data request.
Declaration
public static bool TryDeserialize(BinaryReader reader, out HeadsetCalibrationDataRequest request)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryReader | reader | reader for obtaining the byte array to deserialize |
| HeadsetCalibrationDataRequest | request | output headset calibration data request |
Returns
| Type | Description |
|---|---|
| Boolean | Returns true if the payload was successfully converted to a headset calibration data request, otherwise false. |
TryDeserialize(Byte[], out HeadsetCalibrationDataRequest)
Call to try and deserialize a byte array paylod to create a headset calibration data request.
Declaration
public static bool TryDeserialize(byte[] payload, out HeadsetCalibrationDataRequest request)
Parameters
| Type | Name | Description |
|---|---|---|
| Byte[] | payload | byte array to deserialize |
| HeadsetCalibrationDataRequest | request | output headset calibration data request |
Returns
| Type | Description |
|---|---|
| Boolean | Returns true if the payload was successfully converted to a headset calibration data request, otherwise false. |