Table of Contents

Class CallIBinaryInteger

Namespace
Zyl.VectorTraits.Numerics
Assembly
VectorTraits.dll
public static class CallIBinaryInteger
Inheritance
CallIBinaryInteger
Inherited Members

Methods

GetShortestBitLength<TSelf>(TSelf)

Gets the length, in bits, of the shortest two's complement representation of the current value.

TryReadBigEndian<TSelf>(ReadOnlySpan<byte>, bool, out TSelf)

Tries to read a two's complement number from a span, in big-endian format, and convert it to an instance of the current type.

TryReadLittleEndian<TSelf>(ReadOnlySpan<byte>, bool, out TSelf)

Tries to read a two's complement number from a span, in little-endian format, and convert it to an instance of the current type.

TryWriteBigEndian<TSelf>(TSelf, Span<byte>, out int)

Tries to write the current value, in big-endian format, to a given span.

TryWriteLittleEndian<TSelf>(TSelf, Span<byte>, out int)

Tries to write the current value, in little-endian format, to a given span.