BinaryPrimitives.TryWriteSingleBigEndian(Span<Byte>, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes a Single into a span of bytes, as big endian.
public:
static bool TryWriteSingleBigEndian(Span<System::Byte> destination, float value);
public static bool TryWriteSingleBigEndian (Span<byte> destination, float value);
static member TryWriteSingleBigEndian : Span<byte> * single -> bool
Public Shared Function TryWriteSingleBigEndian (destination As Span(Of Byte), value As Single) As Boolean
Parameters
- value
- Single
The value to write into the span of bytes.
Returns
true
if the span is large enough to contain a Single; otherwise, false
.
Remarks
Writes exactly 4 bytes to the beginning of the span.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.