Implement tokenisation
This commit is contained in:
15
lib/include/memory_stream.h
Normal file
15
lib/include/memory_stream.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef MEMORY_STREAM_H
|
||||
#define MEMORY_STREAM_H
|
||||
|
||||
#include "stream.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct {
|
||||
stream_t stream;
|
||||
const uint8_t *src, *end;
|
||||
} memory_stream_t;
|
||||
|
||||
void memory_stream_init(memory_stream_t *s, const uint8_t *src, size_t size);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user