Class GPGME::GpgmeData |
|
A class for managing data buffers.
Methods |
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.