NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::snd::MemorySoundArchive::MemoryFileStream Class Reference
Inheritance diagram for nw4r::snd::MemorySoundArchive::MemoryFileStream:
[legend]

Description

Definition at line 73 of file snd_MemorySoundArchive.h.

Public Member Functions

 MemoryFileStream (void const *buffer, ulong size)
 
virtual void Close ()
 
virtual s32 Read (void *buf, ulong length)
 
virtual void Seek (s32 offset, ulong origin)
 
virtual bool CanSeek () const
 
virtual bool CanCancel () const
 
virtual bool CanAsync () const
 
virtual bool CanRead () const
 
virtual bool CanWrite () const
 
virtual ulong Tell () const
 
virtual ulong GetSize () const
 
- Public Member Functions inherited from nw4r::ut::FileStream
 NW4R_UT_RTTI_DECL (FileStream)
 
virtual void Cancel ()
 
virtual bool CancelAsync (StreamCallback pCallback, void *pCallbackArg)
 
- Public Member Functions inherited from nw4r::ut::IOStream
 NW4R_UT_RTTI_DECL (IOStream)
 
virtual bool ReadAsync (void *pDst, ulong size, StreamCallback pCallback, void *pCallbackArg)
 
virtual void Write (const void *pSrc, ulong size)
 
virtual bool WriteAsync (const void *pSrc, ulong size, StreamCallback pCallback, void *pCallbackArg)
 
virtual bool IsBusy () const
 
virtual ulong GetOffsetAlign () const
 
virtual ulong GetSizeAlign () const
 
virtual ulong GetBufferAlign () const
 
bool IsAvailable () const
 

Private Attributes

void const * mBuffer
 
ulong mSize
 
ulong mPosition
 

Additional Inherited Members

- Public Types inherited from nw4r::ut::FileStream
enum  SeekOrigin {
  SEEK_BEG ,
  SEEK_CUR ,
  SEEK_END
}
 
- Public Types inherited from nw4r::ut::IOStream
typedef void(* StreamCallback) (s32 result, IOStream *pStream, void *pCallbackArg)
 
- Protected Attributes inherited from nw4r::ut::IOStream
bool mAvailable
 
s32 mAsyncResult
 
StreamCallback mCallback
 
void * mArg
 

Constructor & Destructor Documentation

◆ ~MemoryFileStream()

virtual nw4r::snd::MemorySoundArchive::MemoryFileStream::~MemoryFileStream ( )
inlinevirtual

Definition at line 79 of file snd_MemorySoundArchive.h.

Member Function Documentation

◆ Close()

virtual void nw4r::snd::MemorySoundArchive::MemoryFileStream::Close ( )
virtual

Implements nw4r::ut::IOStream.

◆ Read()

virtual s32 nw4r::snd::MemorySoundArchive::MemoryFileStream::Read ( void * buf,
ulong length )
virtual

Implements nw4r::ut::IOStream.

◆ Seek()

virtual void nw4r::snd::MemorySoundArchive::MemoryFileStream::Seek ( s32 offset,
ulong origin )
virtual

Reimplemented from nw4r::ut::FileStream.

◆ CanSeek()

virtual bool nw4r::snd::MemorySoundArchive::MemoryFileStream::CanSeek ( ) const
inlinevirtual

Implements nw4r::ut::FileStream.

Definition at line 90 of file snd_MemorySoundArchive.h.

◆ CanCancel()

virtual bool nw4r::snd::MemorySoundArchive::MemoryFileStream::CanCancel ( ) const
inlinevirtual

Implements nw4r::ut::FileStream.

Definition at line 91 of file snd_MemorySoundArchive.h.

◆ CanAsync()

virtual bool nw4r::snd::MemorySoundArchive::MemoryFileStream::CanAsync ( ) const
inlinevirtual

Implements nw4r::ut::IOStream.

Definition at line 92 of file snd_MemorySoundArchive.h.

◆ CanRead()

virtual bool nw4r::snd::MemorySoundArchive::MemoryFileStream::CanRead ( ) const
inlinevirtual

Implements nw4r::ut::IOStream.

Definition at line 93 of file snd_MemorySoundArchive.h.

◆ CanWrite()

virtual bool nw4r::snd::MemorySoundArchive::MemoryFileStream::CanWrite ( ) const
inlinevirtual

Implements nw4r::ut::IOStream.

Definition at line 94 of file snd_MemorySoundArchive.h.

◆ Tell()

virtual ulong nw4r::snd::MemorySoundArchive::MemoryFileStream::Tell ( ) const
inlinevirtual

Implements nw4r::ut::FileStream.

Definition at line 95 of file snd_MemorySoundArchive.h.

◆ GetSize()

virtual ulong nw4r::snd::MemorySoundArchive::MemoryFileStream::GetSize ( ) const
inlinevirtual

Implements nw4r::ut::FileStream.

Definition at line 96 of file snd_MemorySoundArchive.h.

Member Data Documentation

◆ mBuffer

void const* nw4r::snd::MemorySoundArchive::MemoryFileStream::mBuffer
private

Definition at line 101 of file snd_MemorySoundArchive.h.

◆ mSize

ulong nw4r::snd::MemorySoundArchive::MemoryFileStream::mSize
private

Definition at line 102 of file snd_MemorySoundArchive.h.

◆ mPosition

ulong nw4r::snd::MemorySoundArchive::MemoryFileStream::mPosition
private

Definition at line 103 of file snd_MemorySoundArchive.h.