Skip to content

Commit

Permalink
ByteBuffer vtable get_pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound committed Jul 14, 2011
1 parent 232e4f9 commit 82e6c72
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/pmc/bytebuffer.pmc
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,22 @@ Extends the buffer by adding a byte of value C<value> to the end.

/*

=item C<PMC *get_pointer()>

Return a pointer to the content. Use with care.

=cut

*/

VTABLE void *get_pointer() {
unsigned char *content;
GET_ATTR_content(INTERP, SELF, content);
return (void *)content;
}

/*

=item C<PMC *get_iter()>

Return a new Iterator for this PMC.
Expand Down

0 comments on commit 82e6c72

Please sign in to comment.