Audacity 3.2.0
Public Types | Public Member Functions | Private Attributes | List of all members
MachineEndianness Class Reference

#include <MultiFormatReader.h>

Public Types

enum  EndiannessT { Little = 0 , Big }
 

Public Member Functions

 MachineEndianness ()
 
 ~MachineEndianness ()
 
int IsLittle ()
 
int IsBig ()
 
EndiannessT Which ()
 

Private Attributes

EndiannessT mFlag
 

Detailed Description

Definition at line 17 of file MultiFormatReader.h.

Member Enumeration Documentation

◆ EndiannessT

Enumerator
Little 
Big 

Definition at line 20 of file MultiFormatReader.h.

Constructor & Destructor Documentation

◆ MachineEndianness()

MachineEndianness::MachineEndianness ( )

Definition at line 26 of file MultiFormatReader.cpp.

27{
28 if (wxBYTE_ORDER == wxLITTLE_ENDIAN)
29 {
31 }
32 else
33 {
35 }
36}

References Big, Little, and mFlag.

◆ ~MachineEndianness()

MachineEndianness::~MachineEndianness ( )
inline

Definition at line 27 of file MultiFormatReader.h.

28 {}

Member Function Documentation

◆ IsBig()

int MachineEndianness::IsBig ( )
inline

Definition at line 35 of file MultiFormatReader.h.

36 {
37 return (mFlag == MachineEndianness::Big) ? 1 : 0;
38 }

References Big, and mFlag.

◆ IsLittle()

int MachineEndianness::IsLittle ( )
inline

Definition at line 30 of file MultiFormatReader.h.

31 {
32 return (mFlag == MachineEndianness::Little) ? 1 : 0;
33 }

References Little, and mFlag.

◆ Which()

EndiannessT MachineEndianness::Which ( )
inline

Definition at line 40 of file MultiFormatReader.h.

41 {
42 return mFlag;
43 }

References mFlag.

Referenced by MultiFormatReader::ReadSamples().

Here is the caller graph for this function:

Member Data Documentation

◆ mFlag

EndiannessT MachineEndianness::mFlag
private

Definition at line 46 of file MultiFormatReader.h.

Referenced by IsBig(), IsLittle(), MachineEndianness(), and Which().


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