diff options
Diffstat (limited to 'src/runtime/c/gu/seq.c')
| -rw-r--r-- | src/runtime/c/gu/seq.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/c/gu/seq.c b/src/runtime/c/gu/seq.c index 2c3d6c3e3..2b99df318 100644 --- a/src/runtime/c/gu/seq.c +++ b/src/runtime/c/gu/seq.c @@ -136,6 +136,12 @@ gu_buf_data(GuBuf* buf) return &buf->seq->data; } +void* +gu_buf_last(GuBuf* buf) +{ + return buf->seq->data + buf->elem_size*(buf->seq->len-1); +} + GuSeq* gu_buf_data_seq(GuBuf* buf) { |
