Header menu logo B2R2

WordSize Module

Provides helper functions for handling the WordSize type.

Functions and values

Function or value Description

WordSize.is128 wordSz

Full Usage: WordSize.is128 wordSz

Parameters:
Returns: bool

Checks if the given word size is 128 bit.

wordSz : WordSize
Returns: bool

WordSize.is256 wordSz

Full Usage: WordSize.is256 wordSz

Parameters:
Returns: bool

Checks if the given word size is 256 bit.

wordSz : WordSize
Returns: bool

WordSize.is32 wordSz

Full Usage: WordSize.is32 wordSz

Parameters:
Returns: bool

Checks if the given word size is 32 bit.

wordSz : WordSize
Returns: bool

WordSize.is64 wordSz

Full Usage: WordSize.is64 wordSz

Parameters:
Returns: bool

Checks if the given word size is 64 bit.

wordSz : WordSize
Returns: bool

WordSize.ofString _arg1

Full Usage: WordSize.ofString _arg1

Parameters:
    _arg1 : string

Returns: WordSize

Transforms a string into a word size (WordSize).

_arg1 : string
Returns: WordSize

WordSize.toByteWidth wordSize

Full Usage: WordSize.toByteWidth wordSize

Parameters:
Returns: int32

Transforms a word size (WordSize) into a byte length.

wordSize : WordSize
Returns: int32

WordSize.toRegType _arg1

Full Usage: WordSize.toRegType _arg1

Parameters:
Returns: int<MeasureProduct<rt, MeasureOne>>

Transforms a word size (WordSize) into a RegType.

_arg1 : WordSize
Returns: int<MeasureProduct<rt, MeasureOne>>

WordSize.toString wordSz

Full Usage: WordSize.toString wordSz

Parameters:
Returns: string

Transforms a word size (WordSize) into a string.

wordSz : WordSize
Returns: string

Type something to start searching.