.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Glib::Bytes 3pm" .TH Glib::Bytes 3pm 2024-01-10 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Glib::Bytes \- Wrappers for bytes objects in GLib .SH HIERARCHY .IX Header "HIERARCHY" .Vb 2 \& Glib::Boxed \& +\-\-\-\-Glib::Bytes .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" In addition to the low-level API documented below, Glib also provides stringification overloading so that you can treat any \f(CW\*(C`Glib::Bytes\*(C'\fR object as a normal Perl string. .SH METHODS .IX Header "METHODS" .SS "bytes = Glib::Bytes\->\fBnew\fP ($data)" .IX Subsection "bytes = Glib::Bytes->new ($data)" .IP \(bu 4 \&\f(CW$data\fR (scalar) .PP Since: glib 2.32 .ie n .SS "integer = $bytes1\->\fBcompare\fP ($bytes2)" .el .SS "integer = \f(CW$bytes1\fP\->\fBcompare\fP ($bytes2)" .IX Subsection "integer = $bytes1->compare ($bytes2)" .IP \(bu 4 \&\f(CW$bytes2\fR (Glib::Bytes) .PP Since: glib 2.32 .ie n .SS "scalar = $bytes\->\fBget_data\fP" .el .SS "scalar = \f(CW$bytes\fP\->\fBget_data\fP" .IX Subsection "scalar = $bytes->get_data" Since: glib 2.32 .ie n .SS "boolean = $bytes1\->\fBequal\fP ($bytes2)" .el .SS "boolean = \f(CW$bytes1\fP\->\fBequal\fP ($bytes2)" .IX Subsection "boolean = $bytes1->equal ($bytes2)" .IP \(bu 4 \&\f(CW$bytes2\fR (Glib::Bytes) .PP Since: glib 2.32 .ie n .SS "integer = $bytes\->\fBhash\fP" .el .SS "integer = \f(CW$bytes\fP\->\fBhash\fP" .IX Subsection "integer = $bytes->hash" Since: glib 2.32 .ie n .SS "unsigned = $bytes\->\fBget_size\fP" .el .SS "unsigned = \f(CW$bytes\fP\->\fBget_size\fP" .IX Subsection "unsigned = $bytes->get_size" Since: glib 2.32 .SH "SEE ALSO" .IX Header "SEE ALSO" Glib, Glib::Boxed .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (C) 2003\-2011 by the gtk2\-perl team. .PP This software is licensed under the LGPL. See Glib for a full notice.