Class GPGME::GpgmeData
In: lib/gpgme.rb
Parent: Object

A class for managing data buffers.

Methods
data_type    encoding    encoding=    new    new_from_mem    read    rewind    write   
Public Class methods
new()

Create a new GpgmeData instance.

new_from_mem(buf)

Create a new GpgmeData instance with internal buffer.

Public Instance methods
read(len = nil)

Read bytes from this object. If len is supplied, it causes this method to read up to the number of bytes.

rewind()

Reset the read pointer.

write(buf, len = buf.length)

Write bytes into this object. If len is supplied, it causes this method to write up to the number of bytes.

data_type()

Return the type of the underlying data.

encoding()

Return the encoding of the underlying data.

encoding=(enc)

Set the encoding of the underlying data.