MakeSlicedBlob (open)

Slice a blob

Syntax

LOADLIB "wh::files.whlib";

BLOB FUNCTION MakeSlicedBlob(BLOB parentblob, INTEGER64 startoffset, INTEGER64 length)

Parameters

BLOB parentblob

Blob to slice

INTEGER64 startoffset

Start offset inside the parent blob

INTEGER64 length

Length of the new blob

Return value

BLOB

Sliced blob

Description

A sliced blob allows you to create a blob that access only partial data from a parent blob. The slice is not a copy, but a reference to data in a parent blob (any action that invalidates parent blobs, such as closing connections to an external database, would also invalidate a sliced blob).