module YARP

def self.dump_internal(source, source_size, filepath)

def self.dump_internal(source, source_size, filepath)
  LibRubyParser.with_buffer do |buffer|
    metadata = [filepath.bytesize, filepath.b, 0].pack("LA*L") if filepath
    LibRubyParser.yp_parse_serialize(source, source_size, buffer, metadata)
    buffer.to_ruby_string
  end
end