aboutsummaryrefslogtreecommitdiff
path: root/arm9/source/types/readbuf.h
blob: a88934bbd0d04c83622f4d53656df58b69530852 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef READBUF_H_
    #define READBUF_H_

    #include "../bang.h"


    // A variable-length read buffer.
    typedef struct {
        u8 *mem;
        u8 p;
    } ReadBuf;

    // Methods.
    void readbuf_populate(ReadBuf *buf, u8 *string);
    u8 readbuf_read(ReadBuf *buf);
    void readbuf_set_pointer(ReadBuf *buf);
#endif