Class ReadExtensions
Static class that contains various extension methods that allow reading data types from a buffer.
Namespace: Unity.Kinematica
Syntax
public static class ReadExtensions
Methods
ReadAffineTransform(Buffer)
Reads a transform from the buffer.
Declaration
public static AffineTransform ReadAffineTransform(this Buffer buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| Buffer | buffer |
Returns
| Type | Description |
|---|---|
| AffineTransform | The transform that has been read from the buffer. |
ReadAffineTransformQuantized(Buffer)
Reads a quantized transform from the buffer.
Declaration
public static AffineTransform ReadAffineTransformQuantized(this Buffer buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| Buffer | buffer |
Returns
| Type | Description |
|---|---|
| AffineTransform | The original transform that has been read from the buffer. |
ReadSamplingTime(Buffer)
Reads a sampling time from the buffer.
Declaration
public static SamplingTime ReadSamplingTime(this Buffer buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| Buffer | buffer |
Returns
| Type | Description |
|---|---|
| SamplingTime | The sampling time that has been read from the buffer. |
ReadTimeIndex(Buffer)
Reads a time index from the buffer.
Declaration
public static TimeIndex ReadTimeIndex(this Buffer buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| Buffer | buffer |
Returns
| Type | Description |
|---|---|
| TimeIndex | The time index that has been read from the buffer. |