ScalarArray.ScalarArray

ScalarArray(Memory<byte>, int, EncodingType, bool)

Initializes a new instance of the ScalarArray struct.

public ScalarArray(Memory<byte> source, int byteStride = 0, 
    EncodingType encoding = EncodingType.FLOAT, bool normalized = false)
ParameterTypeDescription
sourceMemory`1The array range to wrap.
byteStrideInt32The byte stride between elements. If the value is zero, the size of the item is used instead.
encodingEncodingTypeA value of EncodingType.
normalizedBooleanTrue if values are normalized.

See Also


ScalarArray(Memory<byte>, int, int, int, EncodingType, bool)

Initializes a new instance of the ScalarArray struct.

public ScalarArray(Memory<byte> source, int byteOffset, int itemsCount, int byteStride, 
    EncodingType encoding = EncodingType.FLOAT, bool normalized = false)
ParameterTypeDescription
sourceMemory`1The array range to wrap.
byteOffsetInt32The zero-based index of the first Byte in source.
itemsCountInt32The number of Single items in source.
byteStrideInt32The byte stride between elements. If the value is zero, the size of the item is used instead.
encodingEncodingTypeA value of EncodingType.
normalizedBooleanTrue if values are normalized.

See Also