Logo Search packages:      
Sourcecode: inkscape version File versions

guchar* cr_input_get_byte_addr ( CRInput a_this,
gulong  a_offset 

Returns the memory address of the byte located at a given offset in the input stream.

a_this the current instance of CRInput.
a_offset the offset of the byte in the input stream starting from the beginning of the stream.
the address, otherwise NULL if an error occured.

Definition at line 828 of file cr-input.c.

Referenced by cr_input_get_cur_byte_addr().

        g_return_val_if_fail (a_this && PRIVATE (a_this), NULL);

        if (a_offset >= PRIVATE (a_this)->nb_bytes) {
                return NULL;

        return &PRIVATE (a_this)->in_buf[a_offset];

Generated by  Doxygen 1.6.0   Back to index