Util::BLOB - Simple interface to de/serialise perl references with Storable


RDFStore documentation  | view source Contained in the RDFStore distribution.

Index


NAME

Top

Util::BLOB - Simple interface to de/serialise perl references with Storable

SYNOPSIS

Top

	use Util::BLOB;
	my $blobbed = serialise( $blob );
	my $blob = deserialise( $blobbed );
	print "is a BLOB"
		if(isBLOB($blobbed));

DESCRIPTION

Top

Simple perl object/reference de/searialisation using Storable. See RDFStore::Literal(3) and RDFStore::Resource(3)

METHODS

Top

serialise ( BLOB )

Freeze the given perl object or reference to a string; the string is HEX packed to safely be converted to UTF-8 in RDFStore(3).

deserialise ( BLOB )

Thaw the given string to a perl object or reference; the string is HEX unpacked before being thawed.

isBLOB ( CONTENT )

Return true if the CONTENT passed to it is actually a BLOB (perl object reference or frozen string)

SEE ALSO

Top

RDFStore::Literal(3) Storable(3) RDFStore::Resource(3)

AUTHOR

Top

	Alberto Reggiori <areggiori@webweaving.org>



RDFStore documentation  | view source Contained in the RDFStore distribution.