Table of Contents

Method TryGetSingleArray

Namespace
AvroSharp.Generic
Assembly
AvroSharp.dll

TryGetSingleArray(out ReadOnlyMemory<float>)

Gets the items of an array stored as float values, without a copy.

public bool TryGetSingleArray(out ReadOnlyMemory<float> items)

Parameters

items ReadOnlyMemory<float>

The items, when this method returns true.

Returns

bool

true for an array read from float items or made by FromSingleArray(ReadOnlyMemory<float>); false for any other value, including an array of float values held as a list.