Gets the byte array from the memory stream.
Gets whether or not mem owns the backend memory buffer.
Returns this, for use in with statements.
Sets the byte array on the memory stream.
Sets whether or not mem owns the backend memory buffer.
Get builder for gmime.stream_mem.StreamMem
Creates a new #GMimeStreamMem object and initializes the stream contents with the first len bytes of buffer.
Creates a new #GMimeStreamMem with data array.
Returns this, for use in with statements.
Get builder for gmime.stream.Stream
Reads in at most one less than max characters from stream and stores them into the buffer pointed to by buf. Reading stops after an EOS or newline ('\n'). If a newline is read, it is stored into the buffer. A '\0' is stored after the last character in the buffer.
Reads a single line into buffer.
Closes the stream.
Initializes a new stream with bounds start and end.
Tests the end-of-stream indicator for stream.
Sync's the stream to disk.
Gets the length of the stream.
Attempts to read up to len bytes from stream into buf.
Resets the stream.
Repositions the offset of the stream stream to the argument offset according to the directive whence as follows:
Set the bounds on a stream.
Creates a new substream of stream with bounds start and end.
Gets the current offset within the stream.
Attempts to write up to len bytes of buf to stream.
Writes string to stream.
Attempts to write the source stream to the destination stream.
Writes at most count blocks described by vector to stream.
A memory-backed #GMimeStream.