1Clownfish::Blob(3)    User Contributed Perl Documentation   Clownfish::Blob(3)
2
3
4

NAME

6       Clownfish::Blob - Immutable buffer holding arbitrary bytes.
7

SYNOPSIS

9           my $blob = Clownfish::Blob->new($byte_string);
10           my $byte_string = $blob->to_perl;
11

DESCRIPTION

CONSTRUCTORS

14   new
15           my $blob = Clownfish::Blob->new($byte_string);
16
17       Create a Blob containing the passed-in bytes.
18

METHODS

20   get_size
21           my $int = $blob->get_size();
22
23       Return the number of bytes held by the Blob.
24
25   compare_to
26           my $int = $blob->compare_to($other);
27
28       Indicate whether one Blob is less than, equal to, or greater than
29       another.  The byte contents of the Blobs are compared
30       lexicographically.  Throws an exception if "other" is not a Blob.
31
32       Returns: 0 if the Blobs are equal, a negative number if "self" is less
33       than "other", and a positive number if "self" is greater than "other".
34
35   clone
36           my $result = $blob->clone();
37
38       Return a clone of the object.
39

INHERITANCE

41       Clownfish::Blob isa Clownfish::Obj.
42
43
44
45perl v5.36.0                      2023-01-20                Clownfish::Blob(3)
Impressum