Classes | |
| struct | ChunkHeader |
Functions | |
| void | input_latch (Input *input, bool value) |
| uint8_t | input_read (Input *input) |
| bool | IsLittleEndianHost () |
| constexpr uint32_t | MakeTag (char a, char b, char c, char d) |
| absl::Status | WriteBytes (std::ostream &out, const void *data, size_t size) |
| absl::Status | ReadBytes (std::istream &in, void *data, size_t size) |
| absl::Status | WriteUint32LE (std::ostream &out, uint32_t value) |
| absl::Status | ReadUint32LE (std::istream &in, uint32_t *value) |
| template<typename T > | |
| absl::Status | WriteScalar (std::ostream &out, T value) |
| template<typename T > | |
| absl::Status | ReadScalar (std::istream &in, T *value) |
| absl::Status | WriteChunk (std::ostream &out, uint32_t tag, uint32_t version, const std::string &payload) |
| absl::Status | ReadChunkHeader (std::istream &in, ChunkHeader *header) |
Variables | |
| constexpr uint32_t | kStateMagic = 0x59415A45 |
| constexpr uint32_t | kStateFormatVersion = 2 |
| constexpr uint32_t | kMaxChunkSize = 16 * 1024 * 1024 |
| void yaze::emu::anonymous_namespace{snes.cc}::input_latch | ( | Input * | input, |
| bool | value ) |
Definition at line 34 of file snes.cc.
References yaze::emu::Input::current_state_, input_latch(), yaze::emu::Input::latch_line_, and yaze::emu::Input::latched_state_.
Referenced by input_latch().

| uint8_t yaze::emu::anonymous_namespace{snes.cc}::input_read | ( | Input * | input | ) |
Definition at line 41 of file snes.cc.
References yaze::emu::Input::current_state_, input_read(), yaze::emu::Input::latch_line_, and yaze::emu::Input::latched_state_.
Referenced by input_read().

| bool yaze::emu::anonymous_namespace{snes.cc}::IsLittleEndianHost | ( | ) |
Definition at line 54 of file snes.cc.
References IsLittleEndianHost().
Referenced by IsLittleEndianHost().

|
constexpr |
| absl::Status yaze::emu::anonymous_namespace{snes.cc}::WriteBytes | ( | std::ostream & | out, |
| const void * | data, | ||
| size_t | size ) |
Definition at line 68 of file snes.cc.
References WriteBytes().
Referenced by WriteBytes(), WriteChunk(), WriteScalar(), and WriteUint32LE().

| absl::Status yaze::emu::anonymous_namespace{snes.cc}::ReadBytes | ( | std::istream & | in, |
| void * | data, | ||
| size_t | size ) |
Definition at line 76 of file snes.cc.
References ReadBytes().
Referenced by ReadBytes(), ReadScalar(), and ReadUint32LE().

| absl::Status yaze::emu::anonymous_namespace{snes.cc}::WriteUint32LE | ( | std::ostream & | out, |
| uint32_t | value ) |
Definition at line 84 of file snes.cc.
References WriteBytes(), and WriteUint32LE().
Referenced by WriteChunk(), and WriteUint32LE().

| absl::Status yaze::emu::anonymous_namespace{snes.cc}::ReadUint32LE | ( | std::istream & | in, |
| uint32_t * | value ) |
Definition at line 92 of file snes.cc.
References ReadBytes(), and ReadUint32LE().
Referenced by ReadChunkHeader(), and ReadUint32LE().

| absl::Status yaze::emu::anonymous_namespace{snes.cc}::WriteScalar | ( | std::ostream & | out, |
| T | value ) |
Definition at line 106 of file snes.cc.
References WriteBytes(), and WriteScalar().
Referenced by WriteScalar().

| absl::Status yaze::emu::anonymous_namespace{snes.cc}::ReadScalar | ( | std::istream & | in, |
| T * | value ) |
Definition at line 115 of file snes.cc.
References ReadBytes(), and ReadScalar().
Referenced by ReadScalar().

| absl::Status yaze::emu::anonymous_namespace{snes.cc}::WriteChunk | ( | std::ostream & | out, |
| uint32_t | tag, | ||
| uint32_t | version, | ||
| const std::string & | payload ) |
Definition at line 134 of file snes.cc.
References yaze::emu::render::CalculateCRC32(), kMaxChunkSize, RETURN_IF_ERROR, WriteBytes(), WriteChunk(), and WriteUint32LE().
Referenced by WriteChunk().

| absl::Status yaze::emu::anonymous_namespace{snes.cc}::ReadChunkHeader | ( | std::istream & | in, |
| ChunkHeader * | header ) |
Definition at line 152 of file snes.cc.
References yaze::emu::anonymous_namespace{snes.cc}::ChunkHeader::crc32, ReadChunkHeader(), ReadUint32LE(), RETURN_IF_ERROR, yaze::emu::anonymous_namespace{snes.cc}::ChunkHeader::size, yaze::emu::anonymous_namespace{snes.cc}::ChunkHeader::tag, and yaze::emu::anonymous_namespace{snes.cc}::ChunkHeader::version.
Referenced by ReadChunkHeader().

|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 61 of file snes.cc.
Referenced by WriteChunk().