L

libvmod-blob

basic operations for the VCL blob type

vmod_blob

basic operations for the VCL blob type

Manual section: 3

SYNOPSIS

import blob [from "path"] ;

CONTENTS

  • BOOL same(BLOB, BLOB)
  • BOOL equal(BLOB, BLOB)
  • INT length(BLOB)
  • STRING version()

same

BOOL same(BLOB, BLOB)
Description
Returns true if and only if the two BLOB arguments are the same object, i.e. they specify exactly the same region of memory.

equal

BOOL equal(BLOB, BLOB)
Description
Returns true if and only if the two BLOB arguments have equal contents (possibly in different memory regions).

length

INT length(BLOB)
Description
Returns the length of the BLOB.

version

STRING version()
Description
Returns the version string for this VMOD.
Example
std.log("Using VMOD blob version " + blob.version());

COPYRIGHT

Copyright (c) 2016 UPLEX Nils Goroll Systemoptimierung
All rights reserved

Author: Geoffrey Simmons <geoffrey.simmons@uplex.de>

See LICENSE