Skip to content

Commit e4d99b3

Browse files
committed
Fix the serialization docs to match the new public C API
1 parent fbf7c14 commit e4d99b3

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

docs/serialization.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,21 +153,13 @@ The relevant APIs and struct definitions are listed below:
153153
// A pm_buffer_t is a simple memory buffer that stores data in a contiguous
154154
// block of memory. It is used to store the serialized representation of a
155155
// prism tree.
156-
typedef struct {
157-
char *value;
158-
size_t length;
159-
size_t capacity;
160-
} pm_buffer_t;
161-
162-
// Free the memory held by the buffer.
163-
void pm_buffer_cleanup(pm_buffer_t *);
164156

165157
// Parse and serialize the AST represented by the given source to the given
166158
// buffer.
167159
void pm_serialize_parse(pm_buffer_t *buffer, const uint8_t *source, size_t length, const char *data);
168160
```
169161
170-
Typically you would use a stack-allocated `pm_buffer_t` and call `pm_serialize_parse`, as in:
162+
Typically you would allocate a `pm_buffer_t` and call `pm_serialize_parse`, as in:
171163
172164
```c
173165
void

0 commit comments

Comments
 (0)