Chunk Identifier helpers.
More...
Chunk Identifier helpers.
◆ ChunkIdentifierToInt32()
static int NAudio.Utils.ChunkIdentifier.ChunkIdentifierToInt32 |
( |
string | s | ) |
|
|
inlinestatic |
Converts a four-character string to a 32-bit signed integer.
- Parameters
-
s | The input string, must be exactly four characters long. |
- Returns
- The 32-bit signed integer representation of the input string.
- Exceptions
-
ArgumentException | Thrown 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.
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/Plugins/LiveMicrophone/lib/NAudio.Core/Utils/ChunkIdentifier.cs