A wrapper class for globus_byte_t arrays.
Allows the manipulation of globus_byte_t arrays. This class malloc's
the underlying memory in the constructor, and free's it during
destruction. It supports returning the underlying memory as a python
string. It also supports the readline and readlines methods.
| Method Summary |
| |
__init__(self,
size)
Contruct a Buffer object. |
| |
__del__(self)
Destroys the Buffer object. |
| |
__len__(self)
Get the size of the Buffer object. |
| |
as_string(self,
size)
Convert the underlying globus_byte_t array into a Python string. |
| |
get_handle(self)
Get the underlying pointer to the globus_byte_t array. |
| |
get_size(self)
Get the size of the Buffer object. |
| |
readline(self)
Return a single line as a string. |
| |
readlines(self)
Return a list containing each line in the Buffer. |
| |
set_handle(self,
handle)
Sets a globus_byte_t array to a Buffer object |