lib/vips/image.rb
# Write this image to a large memory buffer.
#
# @return [String] the pixels as a huge binary string
Write this image to a large memory buffer.
Write this image to a large memory buffer .
def write_to_memory
            len = Vips::SizeStruct.new
            ptr = Vips::vips_image_write_to_memory self, len
            ptr = FFI::AutoPointer.new(ptr, GLib::G_FREE)
            ptr.get_bytes 0, len[:value]
        end
def write_to_memory len = Vips :: SizeStruct . new ptr = Vips :: vips_image_write_to_memory self , len ptr = FFI :: AutoPointer . new ( ptr , GLib :: G_FREE ) ptr . get_bytes 0 , len [ :value ] end
Write this image to a large memory buffer.
Write this image to a large memory buffer .
# wrap up as an autopointer
the pixels as a huge binary string
the pixels as a huge binary string
String