OpenCascade.js
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.
    Returns

    the 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 data
    • theDataLen
      the length of input data in bytes
    Returns

    Base64 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.
    Returns

    the 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 string
    • theLen
      the length of input encoded string
    Returns

    null handle in case of out of memory condition

FSD_CmpFile

FSD_FileStorage_BaseDriverStandard_Transient

Constructors(1)

Static methods(4)

Instance methods(15)