Name : perl-Data-Buffer
| |
Version : 0.04
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-07-03 19:04:22
|
Group : Development/Libraries/Perl
| Source RPM : perl-Data-Buffer-0.04-lp156.1.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Read/write buffer class
|
Description :
_Data::Buffer_ implements a low-level binary buffer in which you can get and put integers, strings, and other data. Internally the implementation is based on \'pack\' and \'unpack\', such that _Data::Buffer_ is really a layer on top of those built-in functions.
All of the _get_*_ and _put_*_ methods respect the internal offset state in the buffer object. This means that you should read data out of the buffer in the same order that you put it in. For example:
$buf->put_int16(24); $buf->put_int32(1233455); $buf->put_int16(99);
$buf->get_int16; # 24 $buf->get_int32; # 1233455 $buf->get_int16; # 99
Of course, this assumes that you _know_ the order of the data items in the buffer. If your setup is such that your sending and receiving processes won\'t necessarily know what\'s inside the buffers they receive, take a look at the _TEMPLATE USAGE_ section.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-D/15.6/noarch |