Header menu logo B2R2

Endian Module

Provides functions to work with Endian.

Functions and values

Function or value Description

Endian.ofString str

Full Usage: Endian.ofString str

Parameters:
    str : string - A string representing endianness.

Returns: Endian An Endian value corresponding to str.

Gets an Endian value from a string. Accepts "l", "le", or "little" for little endian, and "b", "be", or "big" for big endian (case-insensitive). Raises InvalidEndianException if the string is not recognized.

str : string

A string representing endianness.

Returns: Endian

An Endian value corresponding to str.

Endian.toString endian

Full Usage: Endian.toString endian

Parameters:
    endian : Endian - The Endian value to convert.

Returns: string "Little Endian" or "Big Endian".

Gets the string representation of an Endian value. Raises InvalidEndianException for invalid values.

endian : Endian

The Endian value to convert.

Returns: string

"Little Endian" or "Big Endian".

Type something to start searching.