Read from the current position of the stream.
More...
|
uint8_t | mfread_u8 (MemFile *mf) |
| Read the next byte from stream pointed by mf .
|
|
size_t | mfread (MemFile *mf, void *ptr, size_t size) |
| Read some bytes from stream pointed by mf .
|
|
uint16_t | mfread_u16 (MemFile *mf) |
| Read the next 16-bit of little-endian value from stream pointed by mf .
|
|
uint32_t | mfread_u32 (MemFile *mf) |
| Read the next 32-bit of little-endian value from stream pointed by mf .
|
|
Read from the current position of the stream.
◆ mfread_u8()
Read the next byte from stream pointed by mf
.
- Parameters
-
mf | Pointer to opened stream pointer. |
- Returns
- The byte read.
◆ mfread()
size_t mfread |
( |
MemFile * |
mf, |
|
|
void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
Read some bytes from stream pointed by mf
.
- Parameters
-
mf | Pointer to opened stream pointer. |
ptr | Pointer to buffer into which bytes are read. |
size | Expected number of bytes. |
- Returns
- Actual number of bytes read.
◆ mfread_u16()
uint16_t mfread_u16 |
( |
MemFile * |
mf | ) |
|
|
inline |
Read the next 16-bit of little-endian value from stream pointed by mf
.
- Parameters
-
mf | Pointer to opened stream pointer. |
- Returns
- The 16-bit value read.
Definition at line 158 of file memfile.h.
◆ mfread_u32()
uint32_t mfread_u32 |
( |
MemFile * |
mf | ) |
|
|
inline |
Read the next 32-bit of little-endian value from stream pointed by mf
.
- Parameters
-
mf | Pointer to opened stream pointer. |
- Returns
- The 32-bit value read.
Definition at line 171 of file memfile.h.