Class: String

Inherits:
Object show all
Defined in:
lib/ffi_yajl/ffi/encoder.rb

Instance Method Summary collapse

Instance Method Details

#ffi_yajl(rb_yajl_gen, state) ⇒ Object



315
316
317
318
319
# File 'ext/ffi_yajl/ext/encoder/encoder.c', line 315

def ffi_yajl(yajl_gen, state)
  if ( status = FFI_Yajl.yajl_gen_string(yajl_gen, self, bytesize) ) != 0
    FFI_Yajl::Encoder.raise_error_for_status(status, self)
  end
end