print_on property

Pointer<NativeFunction<Int Function(Pointer<Void> hdr, Pointer<Char> buf, pj_size_t len)>> print_on
getter/setter pair

Pointer to function to print the header to the specified buffer. Returns the length of string written, or -1 if the remaining buffer is not enough to hold the header.

@param hdr The header to print. @param buf The buffer. @param len The size of the buffer.

@return The size copied to buffer, or -1 if there's not enough space.

Implementation

external ffi.Pointer<
    ffi.NativeFunction<
        ffi.Int Function(ffi.Pointer<ffi.Void> hdr, ffi.Pointer<ffi.Char> buf,
            pj_size_t len)>> print_on;