Files
dusklight/libs/JSystem/include/JSystem/JSupport/JSURandomInputStream.h
T
Luke Street 4df8ccc871 Reorganize library code into libs/ (#3119)
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}

* Update configure.py and project.py for new libs structure

* Refactor `#include <dolphin/x.h>` -> `<x.h>`

* Remove `__REVOLUTION_SDK__` forwards from dolphin

* Fix dolphin/ references in revolution

* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`

* Always build TRK against dolphin headers

* Resolve revolution SDK header resolution issues
2026-03-01 14:35:36 -08:00

31 lines
825 B
C++

#ifndef JSURANDOMINPUTSTREAM_H_
#define JSURANDOMINPUTSTREAM_H_
#include "JSystem/JSupport/JSUInputStream.h"
/**
* @ingroup jsystem-jsupport
*
*/
class JSURandomInputStream : public JSUInputStream {
public:
JSURandomInputStream() {}
virtual ~JSURandomInputStream() {}
/* vt[3] */ virtual s32 getAvailable() const /* override */ {
return getLength() - getPosition();
}
/* vt[4] */ virtual s32 skip(s32); /* override */
/* vt[5] */ virtual u32 readData(void*, s32) = 0;
/* vt[6] */ virtual s32 getLength() const = 0;
/* vt[7] */ virtual s32 getPosition() const = 0;
/* vt[8] */ virtual s32 seekPos(s32, JSUStreamSeekFrom) = 0;
// TODO: fix return types
s32 align(s32);
s32 peek(void*, s32);
s32 seek(s32, JSUStreamSeekFrom);
}; // Size = 0x8
#endif