Xeno-rat
Loading...
Searching...
No Matches
NAudio.Utils.ChunkIdentifier Class Reference

Chunk Identifier helpers. More...

Collaboration diagram for NAudio.Utils.ChunkIdentifier:

Static Public Member Functions

static int ChunkIdentifierToInt32 (string s)
 Converts a four-character string to a 32-bit signed integer.
 

Detailed Description

Chunk Identifier helpers.

Member Function Documentation

◆ ChunkIdentifierToInt32()

static int NAudio.Utils.ChunkIdentifier.ChunkIdentifierToInt32 ( string s)
inlinestatic

Converts a four-character string to a 32-bit signed integer.

Parameters
sThe input string, must be exactly four characters long.
Returns
The 32-bit signed integer representation of the input string.
Exceptions
ArgumentExceptionThrown when the input string is not exactly four characters long or when it does not encode to exactly four bytes.

This method converts the input string s to a byte array using UTF-8 encoding, and then converts the byte array to a 32-bit signed integer using the BitConverter.ToInt32 method. If the input string is not exactly four characters long or does not encode to exactly four bytes, an ArgumentException is thrown.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: