Table of Contents

Method GetHexTo

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

GetHexTo<T>(Action<string>, T, string?, bool)

Gets a hexadecimal string and outputs it to Action (取得十六进制字符串, 并输出到 Action ).

public static int GetHexTo<T>(Action<string> action, T src, string? separator = null, bool noFixEndian = false)

Parameters

action Action<string>

Output action (输出动作).

src T

Source value (源值).

separator string

(Ignore) The separator (分隔符).

noFixEndian bool

(Ignore) No fix endian (不修正端序).

Returns

int

Returns the length of the output string (返回输出字符串的长度).

Type Parameters

T

The type of the src value (源值的类型).

GetHexTo<T>(Action<string>, Vector<T>, string?, bool)

Gets a hexadecimal string of the Vector and outputs it to Action (取得 Vector 的十六进制字符串, 并输出到 Action ).

public static int GetHexTo<T>(Action<string> action, Vector<T> src, string? separator = null, bool noFixEndian = false) where T : struct

Parameters

action Action<string>

Output action (输出动作).

src Vector<T>

Source value (源值).

separator string

(Optional) The separator (分隔符).

noFixEndian bool

(Optional) No fix endian (不修正端序).

Returns

int

Returns the length of the output string (返回输出字符串的长度).

Type Parameters

T

The vector element type (向量中的元素的类型).

GetHexTo<T>(Action<string>, Vector64<T>, string?, bool)

Gets a hexadecimal string of the Vector64 and outputs it to Action (取得 Vector64 的十六进制字符串, 并输出到 Action ).

public static int GetHexTo<T>(Action<string> action, Vector64<T> src, string? separator = null, bool noFixEndian = false) where T : struct

Parameters

action Action<string>

Output action (输出动作).

src Vector64<T>

Source value (源值).

separator string

(Optional) The separator (分隔符).

noFixEndian bool

(Optional) No fix endian (不修正端序).

Returns

int

Returns the length of the output string (返回输出字符串的长度).

Type Parameters

T

The vector element type (向量中的元素的类型).

GetHexTo<T>(Action<string>, Vector128<T>, string?, bool)

Gets a hexadecimal string of the Vector128 and outputs it to Action (取得 Vector128 的十六进制字符串, 并输出到 Action ).

public static int GetHexTo<T>(Action<string> action, Vector128<T> src, string? separator = null, bool noFixEndian = false) where T : struct

Parameters

action Action<string>

Output action (输出动作).

src Vector128<T>

Source value (源值).

separator string

(Optional) The separator (分隔符).

noFixEndian bool

(Optional) No fix endian (不修正端序).

Returns

int

Returns the length of the output string (返回输出字符串的长度).

Type Parameters

T

The vector element type (向量中的元素的类型).

GetHexTo<T>(Action<string>, Vector256<T>, string?, bool)

Gets a hexadecimal string of the Vector256 and outputs it to Action (取得 Vector256 的十六进制字符串, 并输出到 Action ).

public static int GetHexTo<T>(Action<string> action, Vector256<T> src, string? separator = null, bool noFixEndian = false) where T : struct

Parameters

action Action<string>

Output action (输出动作).

src Vector256<T>

Source value (源值).

separator string

(Optional) The separator (分隔符).

noFixEndian bool

(Optional) No fix endian (不修正端序).

Returns

int

Returns the length of the output string (返回输出字符串的长度).

Type Parameters

T

The vector element type (向量中的元素的类型).

GetHexTo<T>(Action<string>, Vector512<T>, string?, bool)

Gets a hexadecimal string of the Vector512 and outputs it to Action (取得 Vector512 的十六进制字符串, 并输出到 Action ).

public static int GetHexTo<T>(Action<string> action, Vector512<T> src, string? separator = null, bool noFixEndian = false) where T : struct

Parameters

action Action<string>

Output action (输出动作).

src Vector512<T>

Source value (源值).

separator string

(Optional) The separator (分隔符).

noFixEndian bool

(Optional) No fix endian (不修正端序).

Returns

int

Returns the length of the output string (返回输出字符串的长度).

Type Parameters

T

The vector element type (向量中的元素的类型).