blobCreateSubBlob

Returns a blob that represents a range of bytes in parent. The new blob is always created with #HB_MEMORY_MODE_READONLY, meaning that it will never modify data in the parent blob. The parent data is not expected to be modified, and will result in undefined behavior if it is.

Makes parent immutable.

Parameters

parent harfbuzz.blob.Blob

Parent blob.

offset uint

Start offset of sub-blob within parent, in bytes.

length uint

Length of sub-blob.

Return Value

Type: harfbuzz.blob.Blob

New blob, or the empty blob if something failed or if length is zero or offset is beyond the end of parent's data. Destroy with harfbuzz.global.blobDestroy.