FreeRealmsLocaleTools FreeRealmsLocaleTools
FreeRealmsLocaleTools FreeRealmsLocaleTools
DocFX + Singulink = ♥

Search Results for

    Method ReadPreamble

    ReadPreamble(string)

    Reads the preamble bytes at the beginning of the specified locale .dat file.

    Declaration
    public static ReadOnlySpan<byte> ReadPreamble(string localeDatPath)
    Parameters
    Type Name Description
    string localeDatPath

    The path to the locale .dat file.

    Returns
    Type Description
    ReadOnlySpan<byte>

    The bytes at the beginning of the locale .dat file.

    Exceptions
    Type Condition
    ArgumentNullException
    InvalidDataException

    ReadPreamble(FileStream)

    Reads the preamble bytes at the beginning of the specified stream.

    Declaration
    public static ReadOnlySpan<byte> ReadPreamble(FileStream stream)
    Parameters
    Type Name Description
    FileStream stream

    The stream to read.

    Returns
    Type Description
    ReadOnlySpan<byte>

    The bytes at the beginning of the stream.

    Exceptions
    Type Condition
    ArgumentNullException
    InvalidDataException