unit Chilkat.BinData;

{
  Pascal wrapper for Chilkat BinData.
  Auto-generated by PascalWrapperGenerator -- do not edit manually.
}

{$IFDEF FPC}
  {$MODE DELPHI}
{$ENDIF}

interface

uses
  SysUtils,
  Chilkat.Base;

type

  { TBinData wraps CkBinData via the C bridge layer. }
  TBinData = class(TChilkatBase)
  private
    function  GetLastErrorHtml: string;
    function  GetLastErrorText: string;
    function  GetLastErrorXml: string;
    function  GetVersion: string;
    function  GetDebugLogFilePath: string;
    procedure SetDebugLogFilePath(AValue: string);
    function  GetVerboseLogging: Boolean;
    procedure SetVerboseLogging(AValue: Boolean);
    function  GetLastMethodSuccess: Boolean;
    procedure SetLastMethodSuccess(AValue: Boolean);
    function  GetNumBytes: Integer;
  public
    constructor Create;
    destructor  Destroy; override;

    property LastErrorHtml: string read GetLastErrorHtml;
    property LastErrorText: string read GetLastErrorText;
    property LastErrorXml: string read GetLastErrorXml;
    property Version: string read GetVersion;
    property DebugLogFilePath: string read GetDebugLogFilePath write SetDebugLogFilePath;
    property VerboseLogging: Boolean read GetVerboseLogging write SetVerboseLogging;
    property LastMethodSuccess: Boolean read GetLastMethodSuccess write SetLastMethodSuccess;
    property NumBytes: Integer read GetNumBytes;

    function  LoadEncoded(const encData: string; const encoding: string): Boolean;
    function  GetEncoded(const encoding: string): string;
    function  AppendEncoded(const encData: string; const encoding: string): Boolean;
    function  Clear: Boolean;
    function  LoadFile(const path: string): Boolean;
    function  GetEncodedChunk(offset: Integer; numBytes: Integer; const encoding: string): string;
    function  RemoveChunk(offset: Integer; numBytes: Integer): Boolean;
    function  WriteFile(const path: string): Boolean;
    function  GetEncodedSb(const encoding: string; sb: TChilkatBase): Boolean;
    function  AppendBd(binData: TChilkatBase): Boolean;
    function  AppendString(const str: string; const charset: string): Boolean;
    function  AppendSb(sb: TChilkatBase; const charset: string): Boolean;
    function  AppendBom(const charset: string): Boolean;
    function  AppendEncodedSb(sb: TChilkatBase; const encoding: string): Boolean;
    function  ContentsEqual(binData: TChilkatBase): Boolean;
    function  SecureClear: Boolean;
    function  GetString(const charset: string): string;
    function  AppendByte(byteValue: Integer): Boolean;
    function  AppendInt4(value: Integer; littleEndian: Boolean): Boolean;
    function  AppendInt2(value: Integer; littleEndian: Boolean): Boolean;
    function  AppendPadded(const str: string; const charset: string; padWithSpace: Boolean; fieldLen: Integer): Boolean;
    function  FindString(const str: string; startIdx: Integer; const charset: string): Integer;
    function  GetTextChunk(startIdx: Integer; numBytes: Integer; const charset: string): string;
    function  GetInt2(index: Integer; littleEndian: Boolean): Integer;
    function  GetInt4(index: Integer; littleEndian: Boolean): Integer;
    function  GetUInt2(index: Integer; littleEndian: Boolean): LongWord;
    function  GetUInt4(index: Integer; littleEndian: Boolean): LongWord;
    procedure RemoveByteVal(value: Integer);
    function  WriteAppendFile(const path: string): Boolean;
    function  GetHash(const algorithm: string; const encoding: string): string;
    function  AppendCountedString(numCountBytes: Integer; bigEndian: Boolean; const str: string; const charset: string): Boolean;
    function  GetByte(index: Integer): Integer;
    function  IsValidUtf8: Boolean;
    function  AppendData(data: TBytes; numBytes: Integer): Boolean;
    function  GetData: TBytes;
    function  GetDataChunk(offset: Integer; numBytes: Integer): TBytes;
    procedure ByteSwap(size: Integer);
    function  CharsetConvert(const fromCharset: string; const toCharset: string; allOrNone: Boolean): Boolean;
  end;

implementation

uses
  CkDllLoader,
  Chilkat.Utils;

{ ---- C bridge function pointer types ---- }
type
  TCkBinData_Create  = function(): Pointer; cdecl;
  TCkBinData_Dispose = procedure(handle: Pointer); cdecl;
  TCkBinData_get_LastErrorHtml = function(handle: Pointer): PAnsiChar; cdecl;
  TCkBinData_get_LastErrorText = function(handle: Pointer): PAnsiChar; cdecl;
  TCkBinData_get_LastErrorXml = function(handle: Pointer): PAnsiChar; cdecl;
  TCkBinData_get_Version = function(handle: Pointer): PAnsiChar; cdecl;
  TCkBinData_get_DebugLogFilePath = function(handle: Pointer): PAnsiChar; cdecl;
  TCkBinData_put_DebugLogFilePath = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkBinData_get_VerboseLogging = function(handle: Pointer): LongBool; cdecl;
  TCkBinData_put_VerboseLogging = procedure(handle: Pointer; value: LongBool); cdecl;
  TCkBinData_get_LastMethodSuccess = function(handle: Pointer): LongBool; cdecl;
  TCkBinData_put_LastMethodSuccess = procedure(handle: Pointer; value: LongBool); cdecl;
  TCkBinData_get_NumBytes = function(handle: Pointer): Integer; cdecl;
  TCkBinData_LoadEncoded = function(handle: Pointer; encData: PAnsiChar; encoding: PAnsiChar): LongBool; cdecl;
  TCkBinData_GetEncoded = function(handle: Pointer; encoding: PAnsiChar): PAnsiChar; cdecl;
  TCkBinData_AppendEncoded = function(handle: Pointer; encData: PAnsiChar; encoding: PAnsiChar): LongBool; cdecl;
  TCkBinData_Clear = function(handle: Pointer): LongBool; cdecl;
  TCkBinData_LoadFile = function(handle: Pointer; path: PAnsiChar): LongBool; cdecl;
  TCkBinData_GetEncodedChunk = function(handle: Pointer; offset: Integer; numBytes: Integer; encoding: PAnsiChar): PAnsiChar; cdecl;
  TCkBinData_RemoveChunk = function(handle: Pointer; offset: Integer; numBytes: Integer): LongBool; cdecl;
  TCkBinData_WriteFile = function(handle: Pointer; path: PAnsiChar): LongBool; cdecl;
  TCkBinData_GetEncodedSb = function(handle: Pointer; encoding: PAnsiChar; sb: Pointer): LongBool; cdecl;
  TCkBinData_AppendBd = function(handle: Pointer; binData: Pointer): LongBool; cdecl;
  TCkBinData_AppendString = function(handle: Pointer; str: PAnsiChar; charset: PAnsiChar): LongBool; cdecl;
  TCkBinData_AppendSb = function(handle: Pointer; sb: Pointer; charset: PAnsiChar): LongBool; cdecl;
  TCkBinData_AppendBom = function(handle: Pointer; charset: PAnsiChar): LongBool; cdecl;
  TCkBinData_AppendEncodedSb = function(handle: Pointer; sb: Pointer; encoding: PAnsiChar): LongBool; cdecl;
  TCkBinData_ContentsEqual = function(handle: Pointer; binData: Pointer): LongBool; cdecl;
  TCkBinData_SecureClear = function(handle: Pointer): LongBool; cdecl;
  TCkBinData_GetString = function(handle: Pointer; charset: PAnsiChar): PAnsiChar; cdecl;
  TCkBinData_AppendByte = function(handle: Pointer; byteValue: Integer): LongBool; cdecl;
  TCkBinData_AppendInt4 = function(handle: Pointer; value: Integer; littleEndian: LongBool): LongBool; cdecl;
  TCkBinData_AppendInt2 = function(handle: Pointer; value: Integer; littleEndian: LongBool): LongBool; cdecl;
  TCkBinData_AppendPadded = function(handle: Pointer; str: PAnsiChar; charset: PAnsiChar; padWithSpace: LongBool; fieldLen: Integer): LongBool; cdecl;
  TCkBinData_FindString = function(handle: Pointer; str: PAnsiChar; startIdx: Integer; charset: PAnsiChar): Integer; cdecl;
  TCkBinData_GetTextChunk = function(handle: Pointer; startIdx: Integer; numBytes: Integer; charset: PAnsiChar): PAnsiChar; cdecl;
  TCkBinData_GetInt2 = function(handle: Pointer; index: Integer; littleEndian: LongBool): Integer; cdecl;
  TCkBinData_GetInt4 = function(handle: Pointer; index: Integer; littleEndian: LongBool): Integer; cdecl;
  TCkBinData_GetUInt2 = function(handle: Pointer; index: Integer; littleEndian: LongBool): LongWord; cdecl;
  TCkBinData_GetUInt4 = function(handle: Pointer; index: Integer; littleEndian: LongBool): LongWord; cdecl;
  TCkBinData_RemoveByteVal = procedure(handle: Pointer; value: Integer); cdecl;
  TCkBinData_WriteAppendFile = function(handle: Pointer; path: PAnsiChar): LongBool; cdecl;
  TCkBinData_GetHash = function(handle: Pointer; algorithm: PAnsiChar; encoding: PAnsiChar): PAnsiChar; cdecl;
  TCkBinData_AppendCountedString = function(handle: Pointer; numCountBytes: Integer; bigEndian: LongBool; str: PAnsiChar; charset: PAnsiChar): LongBool; cdecl;
  TCkBinData_GetByte = function(handle: Pointer; index: Integer): Integer; cdecl;
  TCkBinData_IsValidUtf8 = function(handle: Pointer): LongBool; cdecl;
  TCkBinData_AppendData = function(handle: Pointer; data: Pointer; numBytes: Integer): LongBool; cdecl;
  TCkBinData_GetData = function(handle: Pointer): Pointer; cdecl;
  TCkBinData_GetDataChunk = function(handle: Pointer; offset: Integer; numBytes: Integer): Pointer; cdecl;
  TCkBinData_ByteSwap = procedure(handle: Pointer; size: Integer); cdecl;
  TCkBinData_CharsetConvert = function(handle: Pointer; fromCharset: PAnsiChar; toCharset: PAnsiChar; allOrNone: LongBool): LongBool; cdecl;

{ ---- C bridge function pointer variables ---- }
var
  CkBinData_Create:  TCkBinData_Create  = nil;
  CkBinData_Dispose: TCkBinData_Dispose = nil;
  CkBinData_get_LastErrorHtml: TCkBinData_get_LastErrorHtml = nil;
  CkBinData_get_LastErrorText: TCkBinData_get_LastErrorText = nil;
  CkBinData_get_LastErrorXml: TCkBinData_get_LastErrorXml = nil;
  CkBinData_get_Version: TCkBinData_get_Version = nil;
  CkBinData_get_DebugLogFilePath: TCkBinData_get_DebugLogFilePath = nil;
  CkBinData_put_DebugLogFilePath: TCkBinData_put_DebugLogFilePath = nil;
  CkBinData_get_VerboseLogging: TCkBinData_get_VerboseLogging = nil;
  CkBinData_put_VerboseLogging: TCkBinData_put_VerboseLogging = nil;
  CkBinData_get_LastMethodSuccess: TCkBinData_get_LastMethodSuccess = nil;
  CkBinData_put_LastMethodSuccess: TCkBinData_put_LastMethodSuccess = nil;
  CkBinData_get_NumBytes: TCkBinData_get_NumBytes = nil;
  CkBinData_LoadEncoded: TCkBinData_LoadEncoded = nil;
  CkBinData_GetEncoded: TCkBinData_GetEncoded = nil;
  CkBinData_AppendEncoded: TCkBinData_AppendEncoded = nil;
  CkBinData_Clear: TCkBinData_Clear = nil;
  CkBinData_LoadFile: TCkBinData_LoadFile = nil;
  CkBinData_GetEncodedChunk: TCkBinData_GetEncodedChunk = nil;
  CkBinData_RemoveChunk: TCkBinData_RemoveChunk = nil;
  CkBinData_WriteFile: TCkBinData_WriteFile = nil;
  CkBinData_GetEncodedSb: TCkBinData_GetEncodedSb = nil;
  CkBinData_AppendBd: TCkBinData_AppendBd = nil;
  CkBinData_AppendString: TCkBinData_AppendString = nil;
  CkBinData_AppendSb: TCkBinData_AppendSb = nil;
  CkBinData_AppendBom: TCkBinData_AppendBom = nil;
  CkBinData_AppendEncodedSb: TCkBinData_AppendEncodedSb = nil;
  CkBinData_ContentsEqual: TCkBinData_ContentsEqual = nil;
  CkBinData_SecureClear: TCkBinData_SecureClear = nil;
  CkBinData_GetString: TCkBinData_GetString = nil;
  CkBinData_AppendByte: TCkBinData_AppendByte = nil;
  CkBinData_AppendInt4: TCkBinData_AppendInt4 = nil;
  CkBinData_AppendInt2: TCkBinData_AppendInt2 = nil;
  CkBinData_AppendPadded: TCkBinData_AppendPadded = nil;
  CkBinData_FindString: TCkBinData_FindString = nil;
  CkBinData_GetTextChunk: TCkBinData_GetTextChunk = nil;
  CkBinData_GetInt2: TCkBinData_GetInt2 = nil;
  CkBinData_GetInt4: TCkBinData_GetInt4 = nil;
  CkBinData_GetUInt2: TCkBinData_GetUInt2 = nil;
  CkBinData_GetUInt4: TCkBinData_GetUInt4 = nil;
  CkBinData_RemoveByteVal: TCkBinData_RemoveByteVal = nil;
  CkBinData_WriteAppendFile: TCkBinData_WriteAppendFile = nil;
  CkBinData_GetHash: TCkBinData_GetHash = nil;
  CkBinData_AppendCountedString: TCkBinData_AppendCountedString = nil;
  CkBinData_GetByte: TCkBinData_GetByte = nil;
  CkBinData_IsValidUtf8: TCkBinData_IsValidUtf8 = nil;
  CkBinData_AppendData: TCkBinData_AppendData = nil;
  CkBinData_GetData: TCkBinData_GetData = nil;
  CkBinData_GetDataChunk: TCkBinData_GetDataChunk = nil;
  CkBinData_ByteSwap: TCkBinData_ByteSwap = nil;
  CkBinData_CharsetConvert: TCkBinData_CharsetConvert = nil;

constructor TBinData.Create;
begin
  inherited Create;
  FHandle := CkBinData_Create();
end;

destructor TBinData.Destroy;
begin
  if FHandle <> nil then
    CkBinData_Dispose(FHandle);
  FHandle := nil;
  inherited;
end;

function TBinData.GetLastErrorHtml: string;
begin
  Result := CkToStr(CkBinData_get_LastErrorHtml(FHandle));
end;

function TBinData.GetLastErrorText: string;
begin
  Result := CkToStr(CkBinData_get_LastErrorText(FHandle));
end;

function TBinData.GetLastErrorXml: string;
begin
  Result := CkToStr(CkBinData_get_LastErrorXml(FHandle));
end;

function TBinData.GetVersion: string;
begin
  Result := CkToStr(CkBinData_get_Version(FHandle));
end;

function TBinData.GetDebugLogFilePath: string;
begin
  Result := CkToStr(CkBinData_get_DebugLogFilePath(FHandle));
end;

procedure TBinData.SetDebugLogFilePath(AValue: string);
begin
  CkBinData_put_DebugLogFilePath(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TBinData.GetVerboseLogging: Boolean;
begin
  Result := Boolean(CkBinData_get_VerboseLogging(FHandle));
end;

procedure TBinData.SetVerboseLogging(AValue: Boolean);
begin
  CkBinData_put_VerboseLogging(FHandle, LongBool(AValue));
end;

function TBinData.GetLastMethodSuccess: Boolean;
begin
  Result := Boolean(CkBinData_get_LastMethodSuccess(FHandle));
end;

procedure TBinData.SetLastMethodSuccess(AValue: Boolean);
begin
  CkBinData_put_LastMethodSuccess(FHandle, LongBool(AValue));
end;

function TBinData.GetNumBytes: Integer;
begin
  Result := CkBinData_get_NumBytes(FHandle);
end;

function TBinData.LoadEncoded(const encData: string; const encoding: string): Boolean;
begin
  Result := Boolean(CkBinData_LoadEncoded(FHandle, PAnsiChar(StrToCk(encData)), PAnsiChar(StrToCk(encoding))));
end;

function TBinData.GetEncoded(const encoding: string): string;
begin
  Result := CkToStr(CkBinData_GetEncoded(FHandle, PAnsiChar(StrToCk(encoding))));
end;

function TBinData.AppendEncoded(const encData: string; const encoding: string): Boolean;
begin
  Result := Boolean(CkBinData_AppendEncoded(FHandle, PAnsiChar(StrToCk(encData)), PAnsiChar(StrToCk(encoding))));
end;

function TBinData.Clear: Boolean;
begin
  Result := Boolean(CkBinData_Clear(FHandle));
end;

function TBinData.LoadFile(const path: string): Boolean;
begin
  Result := Boolean(CkBinData_LoadFile(FHandle, PAnsiChar(StrToCk(path))));
end;

function TBinData.GetEncodedChunk(offset: Integer; numBytes: Integer; const encoding: string): string;
begin
  Result := CkToStr(CkBinData_GetEncodedChunk(FHandle, offset, numBytes, PAnsiChar(StrToCk(encoding))));
end;

function TBinData.RemoveChunk(offset: Integer; numBytes: Integer): Boolean;
begin
  Result := Boolean(CkBinData_RemoveChunk(FHandle, offset, numBytes));
end;

function TBinData.WriteFile(const path: string): Boolean;
begin
  Result := Boolean(CkBinData_WriteFile(FHandle, PAnsiChar(StrToCk(path))));
end;

function TBinData.GetEncodedSb(const encoding: string; sb: TChilkatBase): Boolean;
begin
  Result := Boolean(CkBinData_GetEncodedSb(FHandle, PAnsiChar(StrToCk(encoding)), sb.Handle));
end;

function TBinData.AppendBd(binData: TChilkatBase): Boolean;
begin
  Result := Boolean(CkBinData_AppendBd(FHandle, binData.Handle));
end;

function TBinData.AppendString(const str: string; const charset: string): Boolean;
begin
  Result := Boolean(CkBinData_AppendString(FHandle, PAnsiChar(StrToCk(str)), PAnsiChar(StrToCk(charset))));
end;

function TBinData.AppendSb(sb: TChilkatBase; const charset: string): Boolean;
begin
  Result := Boolean(CkBinData_AppendSb(FHandle, sb.Handle, PAnsiChar(StrToCk(charset))));
end;

function TBinData.AppendBom(const charset: string): Boolean;
begin
  Result := Boolean(CkBinData_AppendBom(FHandle, PAnsiChar(StrToCk(charset))));
end;

function TBinData.AppendEncodedSb(sb: TChilkatBase; const encoding: string): Boolean;
begin
  Result := Boolean(CkBinData_AppendEncodedSb(FHandle, sb.Handle, PAnsiChar(StrToCk(encoding))));
end;

function TBinData.ContentsEqual(binData: TChilkatBase): Boolean;
begin
  Result := Boolean(CkBinData_ContentsEqual(FHandle, binData.Handle));
end;

function TBinData.SecureClear: Boolean;
begin
  Result := Boolean(CkBinData_SecureClear(FHandle));
end;

function TBinData.GetString(const charset: string): string;
begin
  Result := CkToStr(CkBinData_GetString(FHandle, PAnsiChar(StrToCk(charset))));
end;

function TBinData.AppendByte(byteValue: Integer): Boolean;
begin
  Result := Boolean(CkBinData_AppendByte(FHandle, byteValue));
end;

function TBinData.AppendInt4(value: Integer; littleEndian: Boolean): Boolean;
begin
  Result := Boolean(CkBinData_AppendInt4(FHandle, value, LongBool(littleEndian)));
end;

function TBinData.AppendInt2(value: Integer; littleEndian: Boolean): Boolean;
begin
  Result := Boolean(CkBinData_AppendInt2(FHandle, value, LongBool(littleEndian)));
end;

function TBinData.AppendPadded(const str: string; const charset: string; padWithSpace: Boolean; fieldLen: Integer): Boolean;
begin
  Result := Boolean(CkBinData_AppendPadded(FHandle, PAnsiChar(StrToCk(str)), PAnsiChar(StrToCk(charset)), LongBool(padWithSpace), fieldLen));
end;

function TBinData.FindString(const str: string; startIdx: Integer; const charset: string): Integer;
begin
  Result := CkBinData_FindString(FHandle, PAnsiChar(StrToCk(str)), startIdx, PAnsiChar(StrToCk(charset)));
end;

function TBinData.GetTextChunk(startIdx: Integer; numBytes: Integer; const charset: string): string;
begin
  Result := CkToStr(CkBinData_GetTextChunk(FHandle, startIdx, numBytes, PAnsiChar(StrToCk(charset))));
end;

function TBinData.GetInt2(index: Integer; littleEndian: Boolean): Integer;
begin
  Result := CkBinData_GetInt2(FHandle, index, LongBool(littleEndian));
end;

function TBinData.GetInt4(index: Integer; littleEndian: Boolean): Integer;
begin
  Result := CkBinData_GetInt4(FHandle, index, LongBool(littleEndian));
end;

function TBinData.GetUInt2(index: Integer; littleEndian: Boolean): LongWord;
begin
  Result := CkBinData_GetUInt2(FHandle, index, LongBool(littleEndian));
end;

function TBinData.GetUInt4(index: Integer; littleEndian: Boolean): LongWord;
begin
  Result := CkBinData_GetUInt4(FHandle, index, LongBool(littleEndian));
end;

procedure TBinData.RemoveByteVal(value: Integer);
begin
  CkBinData_RemoveByteVal(FHandle, value);
end;

function TBinData.WriteAppendFile(const path: string): Boolean;
begin
  Result := Boolean(CkBinData_WriteAppendFile(FHandle, PAnsiChar(StrToCk(path))));
end;

function TBinData.GetHash(const algorithm: string; const encoding: string): string;
begin
  Result := CkToStr(CkBinData_GetHash(FHandle, PAnsiChar(StrToCk(algorithm)), PAnsiChar(StrToCk(encoding))));
end;

function TBinData.AppendCountedString(numCountBytes: Integer; bigEndian: Boolean; const str: string; const charset: string): Boolean;
begin
  Result := Boolean(CkBinData_AppendCountedString(FHandle, numCountBytes, LongBool(bigEndian), PAnsiChar(StrToCk(str)), PAnsiChar(StrToCk(charset))));
end;

function TBinData.GetByte(index: Integer): Integer;
begin
  Result := CkBinData_GetByte(FHandle, index);
end;

function TBinData.IsValidUtf8: Boolean;
begin
  Result := Boolean(CkBinData_IsValidUtf8(FHandle));
end;

function TBinData.AppendData(data: TBytes; numBytes: Integer): Boolean;
begin
  Result := Boolean(CkBinData_AppendData(FHandle, data, numBytes));
end;

function TBinData.GetData: TBytes;
begin
  Result := CkBinData_GetData(FHandle);
end;

function TBinData.GetDataChunk(offset: Integer; numBytes: Integer): TBytes;
begin
  Result := CkBinData_GetDataChunk(FHandle, offset, numBytes);
end;

procedure TBinData.ByteSwap(size: Integer);
begin
  CkBinData_ByteSwap(FHandle, size);
end;

function TBinData.CharsetConvert(const fromCharset: string; const toCharset: string; allOrNone: Boolean): Boolean;
begin
  Result := Boolean(CkBinData_CharsetConvert(FHandle, PAnsiChar(StrToCk(fromCharset)), PAnsiChar(StrToCk(toCharset)), LongBool(allOrNone)));
end;

initialization
  Chilkat_GetProcedureAddress(CkBinData_Create,  'CkBinData_Create');
  Chilkat_GetProcedureAddress(CkBinData_Dispose, 'CkBinData_Dispose');
  Chilkat_GetProcedureAddress(CkBinData_get_LastErrorHtml, 'CkBinData_get_LastErrorHtml');
  Chilkat_GetProcedureAddress(CkBinData_get_LastErrorText, 'CkBinData_get_LastErrorText');
  Chilkat_GetProcedureAddress(CkBinData_get_LastErrorXml, 'CkBinData_get_LastErrorXml');
  Chilkat_GetProcedureAddress(CkBinData_get_Version, 'CkBinData_get_Version');
  Chilkat_GetProcedureAddress(CkBinData_get_DebugLogFilePath, 'CkBinData_get_DebugLogFilePath');
  Chilkat_GetProcedureAddress(CkBinData_put_DebugLogFilePath, 'CkBinData_put_DebugLogFilePath');
  Chilkat_GetProcedureAddress(CkBinData_get_VerboseLogging, 'CkBinData_get_VerboseLogging');
  Chilkat_GetProcedureAddress(CkBinData_put_VerboseLogging, 'CkBinData_put_VerboseLogging');
  Chilkat_GetProcedureAddress(CkBinData_get_LastMethodSuccess, 'CkBinData_get_LastMethodSuccess');
  Chilkat_GetProcedureAddress(CkBinData_put_LastMethodSuccess, 'CkBinData_put_LastMethodSuccess');
  Chilkat_GetProcedureAddress(CkBinData_get_NumBytes, 'CkBinData_get_NumBytes');
  Chilkat_GetProcedureAddress(CkBinData_LoadEncoded, 'CkBinData_LoadEncoded');
  Chilkat_GetProcedureAddress(CkBinData_GetEncoded, 'CkBinData_GetEncoded');
  Chilkat_GetProcedureAddress(CkBinData_AppendEncoded, 'CkBinData_AppendEncoded');
  Chilkat_GetProcedureAddress(CkBinData_Clear, 'CkBinData_Clear');
  Chilkat_GetProcedureAddress(CkBinData_LoadFile, 'CkBinData_LoadFile');
  Chilkat_GetProcedureAddress(CkBinData_GetEncodedChunk, 'CkBinData_GetEncodedChunk');
  Chilkat_GetProcedureAddress(CkBinData_RemoveChunk, 'CkBinData_RemoveChunk');
  Chilkat_GetProcedureAddress(CkBinData_WriteFile, 'CkBinData_WriteFile');
  Chilkat_GetProcedureAddress(CkBinData_GetEncodedSb, 'CkBinData_GetEncodedSb');
  Chilkat_GetProcedureAddress(CkBinData_AppendBd, 'CkBinData_AppendBd');
  Chilkat_GetProcedureAddress(CkBinData_AppendString, 'CkBinData_AppendString');
  Chilkat_GetProcedureAddress(CkBinData_AppendSb, 'CkBinData_AppendSb');
  Chilkat_GetProcedureAddress(CkBinData_AppendBom, 'CkBinData_AppendBom');
  Chilkat_GetProcedureAddress(CkBinData_AppendEncodedSb, 'CkBinData_AppendEncodedSb');
  Chilkat_GetProcedureAddress(CkBinData_ContentsEqual, 'CkBinData_ContentsEqual');
  Chilkat_GetProcedureAddress(CkBinData_SecureClear, 'CkBinData_SecureClear');
  Chilkat_GetProcedureAddress(CkBinData_GetString, 'CkBinData_GetString');
  Chilkat_GetProcedureAddress(CkBinData_AppendByte, 'CkBinData_AppendByte');
  Chilkat_GetProcedureAddress(CkBinData_AppendInt4, 'CkBinData_AppendInt4');
  Chilkat_GetProcedureAddress(CkBinData_AppendInt2, 'CkBinData_AppendInt2');
  Chilkat_GetProcedureAddress(CkBinData_AppendPadded, 'CkBinData_AppendPadded');
  Chilkat_GetProcedureAddress(CkBinData_FindString, 'CkBinData_FindString');
  Chilkat_GetProcedureAddress(CkBinData_GetTextChunk, 'CkBinData_GetTextChunk');
  Chilkat_GetProcedureAddress(CkBinData_GetInt2, 'CkBinData_GetInt2');
  Chilkat_GetProcedureAddress(CkBinData_GetInt4, 'CkBinData_GetInt4');
  Chilkat_GetProcedureAddress(CkBinData_GetUInt2, 'CkBinData_GetUInt2');
  Chilkat_GetProcedureAddress(CkBinData_GetUInt4, 'CkBinData_GetUInt4');
  Chilkat_GetProcedureAddress(CkBinData_RemoveByteVal, 'CkBinData_RemoveByteVal');
  Chilkat_GetProcedureAddress(CkBinData_WriteAppendFile, 'CkBinData_WriteAppendFile');
  Chilkat_GetProcedureAddress(CkBinData_GetHash, 'CkBinData_GetHash');
  Chilkat_GetProcedureAddress(CkBinData_AppendCountedString, 'CkBinData_AppendCountedString');
  Chilkat_GetProcedureAddress(CkBinData_GetByte, 'CkBinData_GetByte');
  Chilkat_GetProcedureAddress(CkBinData_IsValidUtf8, 'CkBinData_IsValidUtf8');
  Chilkat_GetProcedureAddress(CkBinData_AppendData, 'CkBinData_AppendData');
  Chilkat_GetProcedureAddress(CkBinData_GetData, 'CkBinData_GetData');
  Chilkat_GetProcedureAddress(CkBinData_GetDataChunk, 'CkBinData_GetDataChunk');
  Chilkat_GetProcedureAddress(CkBinData_ByteSwap, 'CkBinData_ByteSwap');
  Chilkat_GetProcedureAddress(CkBinData_CharsetConvert, 'CkBinData_CharsetConvert');

end.
