API ReferenceFoundationClassesTKernel
FSD
OCCT package FSD: FSD_Base64, FSD_CmpFile, FSD_FileHeader.
FSD_Base64
Tool for encoding/decoding base64 stream.
Constructors(1)
Static methods(4)
- Encode(theEncodedStr: string, theStrLen: number, theData: number, theDataLen: number): number
Function encoding a buffer to base64 string.
Parameters (4)theEncodedStr—the place for encoded string. Terminating null is not put. If it is NULL just return the needed size.theStrLen—the length of the buffer theEncodedStr in bytes. This value must not be less than value returned when theEncodedStr is NULL.theData—the input binary data.theDataLen—the length of input data in bytes.
Returnsthe length of the encoded string not including terminating null. If theStrLen is not enough for storing all data nothing is written and 0 is returned.
- Encode(theData: number, theDataLen: number): TCollection_AsciiString
Function encoding a buffer to base64 string.
Parameters (2)theData—the input binary datatheDataLen—the length of input data in bytes
ReturnsBase64 encoded string.
- Decode(theDecodedData: number, theDataLen: number, theEncodedStr: string, theStrLen: number): number
Function decoding base64 string.
Parameters (4)theDecodedData—the place for decoded data. If it is NULL just return the needed size.theDataLen—the length of the buffer theDecodedData in bytes. This value must not be less than value returned when theDecodedData is NULL.theEncodedStr—the input encoded string.theStrLen—the length of input encoded string.
Returnsthe length of the decoded data in bytes. If theDataLen is not enough for storing all data nothing is written and 0 is returned.
- Decode(theStr: string, theLen: number): NCollection_Buffer
Function decoding base64 string.
Parameters (2)theStr—the input encoded stringtheLen—the length of input encoded string
Returnsnull handle in case of out of memory condition
FSD_CmpFile
Constructors(1)
Static methods(4)
- get_type_name(): string
- Parameters (1)
aName
- MagicNumber(): string
Instance methods(15)
- Open(aName: TCollection_AsciiString, aMode: Storage_OpenMode): Storage_ErrorParameters (2)
aNameaMode
- WritePersistentObjectHeader(aRef: number, aType: number): voidParameters (2)
aRefaType
- BeginWritePersistentObjectData(): void
- BeginWriteObjectData(): void
- EndWriteObjectData(): void
- EndWritePersistentObjectData(): void
- ReadPersistentObjectHeader(aRef: number, aType: number): { aRef: number; aType: number }Parameters (2)
aRefaType
- BeginReadPersistentObjectData(): void
- BeginReadObjectData(): void
- EndReadObjectData(): void
- EndReadPersistentObjectData(): void
- Destroy(): void