System::BitConverter::ToString methode

BitConverter::ToString(const ArrayPtr<uint8_t>&, bool, const String&) method

Converteert alle waarden van de opgegeven byte-array naar hun hexadecimale tekenreeksrepresentatie. Hoofdlettergebruik voor letters in de hexadecimale notatie en de scheidingsteken dat tussen elk paar aangrenzende bytes wordt ingevoegd, worden gespecificeerd via de overeenkomstige argumenten.

static String System::BitConverter::ToString(const ArrayPtr<uint8_t> &value, bool uppercase=true, const String &separator=u"-")
ParameterTypeBeschrijving
valueconst ArrayPtr<uint8_t>&Array die bytes bevat om te converteren
hoofdlettersboolSpecificeert de hoofdlettervorm van letters die in de resulterende hexadecimale representatie worden gebruikt
separatorconst String&Een tekenreeks die wordt gebruikt als scheidingsteken, ingevoegd tussen elk paar aangrenzende bytes in de resulterende tekenreeks

ReturnValue

String containing hexadecimal representation of the specified byte array

Zie ook

BitConverter::ToString(const ArrayPtr<uint8_t>&, int) method

Converteert waarden van de opgegeven byte-array naar hun hexadecimale tekenreeksrepresentatie, beginnend op de opgegeven index.

static String System::BitConverter::ToString(const ArrayPtr<uint8_t> &value, int startIndex)
ParameterTypeBeschrijving
valueconst ArrayPtr<uint8_t>&Array die bytes bevat om te converteren
startIndexintIndex in de opgegeven array waarop de conversie moet beginnen

ReturnValue

String containing hexadecimal representation of the specified range of elements of the specified array

Zie ook

BitConverter::ToString(const ArrayPtr<uint8_t>&, int, int) method

Converteert een bereik van waarden van de opgegeven byte-array naar hun hexadecimale tekenreeksrepresentatie.

static String System::BitConverter::ToString(const ArrayPtr<uint8_t> &value, int startIndex, int length)
ParameterTypeBeschrijving
valueconst ArrayPtr<uint8_t>&Array die bytes bevat om te converteren
startIndexintIndex in de opgegeven array waarop het bereik van de te converteren byte-array‑elementen begint
lengteintDe lengte van het bereik van de byte-array‑elementen die moeten worden geconverteerd

ReturnValue

String containing hexadecimal representation of the specified range of elements of the specified array

Zie ook