Skip to content

TBLResult

Blend2D result code.

Definition

Unit: Blend2D

type TBLResult = (Success, OutOfMemory, InvalidValue, InvalidState, InvalidHandle, InvalidConversion, Overflow, NotInitialized, NotImplemented, NotPermitted, IOError, Busy, Interrupted, TryAgain, TimedOut...)

Enumeration Values

Success = 0

Successful result code.


OutOfMemory = $00010000

Out of memory [ENOMEM].


InvalidValue (2)

Invalid value/argument [EINVAL].


InvalidState (3)

Invalid state [EFAULT].


InvalidHandle (4)

Invalid handle or file [EBADF].


InvalidConversion (5)

Invalid conversion.


Overflow (6)

Value too large [EOVERFLOW].


NotInitialized (7)

Object not initialized.


NotImplemented (8)

Not implemented [ENOSYS].


NotPermitted (9)

Operation not permitted [EPERM].


IOError (10)

IO error [EIO].


Busy (11)

Device or resource busy [EBUSY].


Interrupted (12)

Operation interrupted [EINTR].


TryAgain (13)

Try again [EAGAIN].


TimedOut (14)

Timed out [ETIMEDOUT].


BrokenPipe (15)

Broken pipe [EPIPE].


InvalidSeek (16)

File is not seekable [ESPIPE].


SymlinkLoop (17)

Too many levels of symlinks [ELOOP].


FileTooLarge (18)

File is too large [EFBIG].


AlreadyExists (19)

File/directory already exists [EEXIST].


AccessDenied (20)

Access denied [EACCES].


MediaChanged (21)

Media changed [Windows::ERROR_MEDIA_CHANGED].


ReadOnlyFS (22)

The file/FS is read-only [EROFS].


NoDevice (23)

Device doesn't exist [ENXIO].


NoEntry (24)

Not found, no entry (fs) [ENOENT].


NoMedia (25)

No media in drive/device [ENOMEDIUM].


NoMoreData (26)

No more data / end of file [ENODATA].


NoMoreFiles (27)

No more files [ENMFILE].


NoSpaceLeft (28)

No space left on device [ENOSPC].


NotEmpty (29)

Directory is not empty [ENOTEMPTY].


NotFile (30)

Not a file [EISDIR].


NotDirectory (31)

Not a directory [ENOTDIR].


NotSameDevice (32)

Not same device [EXDEV].


NotBlockDevice (33)

Not a block device [ENOTBLK].


InvalidFilename (34)

File/path name is invalid.


FilenameTooLong (35)

File/path name is too long [ENAMETOOLONG].


TooManyOpenFiles (36)

Too many open files [EMFILE].


TooManyOpenFilesByOS (37)

Too many open files by OS [ENFILE].


Too many symbolic links on FS [EMLINK].


TooManyThreads (39)

Too many threads [EAGAIN].


ThreadPoolExhausted (40)

Thread pool is exhausted and couldn't acquire the requested thread count.


FileEmpty (41)

File is empty (not specific to any OS error).


OpenFailed (42)

File open failed [Windows::ERROR_OPEN_FAILED].


NotRootDevice (43)

Not a root device/directory [Windows::ERROR_DIR_NOT_ROOT].


UnknownSystemError (44)

Unknown system error that failed to translate to Blend2D result code.


InvalidArgument (45)

Invalid data alignment.


InvalidSignature (46)

Invalid data signature or header.


InvalidData (47)

Invalid or corrupted data.


InvalidString (48)

Invalid string (invalid data of either UTF8, UTF16, or UTF32).


InvalidKey (49)

Invalid key or property.


DataTruncated (50)

Truncated data (more data required than memory/stream provides).


DataTooLarge (51)

Input data too large to be processed.


DecompressionFailed (52)

Decompression failed due to invalid data (RLE, Huffman, etc).


InvalidGeometry (53)

Invalid geometry (invalid path data or shape).


NoMatchingVertex (54)

Returned when there is no matching vertex in path data.


InvalidCreateFlags (55)

Invalid create flags (TBLContext).


NoMatchingCookie (56)

No matching cookie (TBLContext).


NoStatesToRestore (57)

No states to restore (TBLContext).


TooManySavedStates (58)

Cannot save state as the number of saved states reached the limit (TBLContext).


ImageTooBig (59)

The size of the image is too large.


ImageNoMatchingCodec (60)

Image codec for a required format doesn't exist.


ImageUnknownFileFormat (61)

Unknown or invalid file format that cannot be read.


ImageDecoderNotProvided (62)

Image codec doesn't support reading the file format.


ImageEncoderNotProvided (63)

Image codec doesn't support writing the file format.


PngMultipleIHDR (64)

Multiple IHDR chunks are not allowed (PNG).


PngInvalidIDAT (65)

Invalid IDAT chunk (PNG).


PngInvalidIEND (66)

Invalid IEND chunk (PNG).


PngInvalidPLTE (67)

Invalid PLTE chunk (PNG).


PngInvalidTRNS (68)

Invalid tRNS chunk (PNG).


PngInvalidFilter (69)

Invalid filter type (PNG).


JpegUnsupportedFeature (70)

Unsupported feature (JPEG).


JpegInvalidSOS (71)

Invalid SOS marker or header (JPEG).


JpegInvalidSOF (72)

Invalid SOF marker (JPEG).


JpegMultipleSOF (73)

Multiple SOF markers (JPEG).


JpegUnsupportedSOF (74)

Unsupported SOF marker (JPEG).


FontNotInitialized (75)

Font doesn't have any data as it's not initialized.


FontNoMatch (76)

Font or font-face was not matched (TBLFontManager).


FontNoCharacterMapping (77)

Font has no character to glyph mapping data.


FontMissingImportantTable (78)

Font has missing an important table.


FontFeatureNotAvailable (79)

Font feature is not available.


FontCFFInvalidData (80)

Font has an invalid CFF data.


FontProgramTerminated (81)

Font program terminated because the execution reached the limit.


GlyphSubstitutionTooLarge (82)

Glyph substitution requires too much space and was terminated.


InvalidGlyph (83)

Invalid glyph identifier.


Methods

Name Description
ToString Converts the result code to a string.

Method Descriptions

ToString

Converts the result code to a string.

function ToString: String

Returns

String