TBitArrayHelpers = class
class function CreateBitArray:IBitArray; overload;
class function CreateBitArray(const Size: Integer):IBitArray; overload;
end;
class function TBitArrayHelpers.CreateBitArray:IBitArray;
begin
result := ZXing.Common.BitArrayImplementation.NewBitArray;
end;
class function TBitArrayHelpers.CreateBitArray(const Size: Integer):IBitArray;
begin
result := ZXing.Common.BitArrayImplementation.NewBitArray(size);
end;
end.
`
fixed
`
unit ZXing.Common.BitArray;
interface
type
IBitArray = interface
['{3D65F451-E408-4015-A637-73CD05877BCB}']
// property getters and setters
function GetBit(i: Integer): Boolean;
procedure SetBit(i: Integer; Value: Boolean);
function GetBits: TArray;
TBitArrayHelpers = class
class function CreateBitArray_:IBitArray; overload;
class function CreateBitArray(const Size: Integer):IBitArray; overload;
end;
class function TBitArrayHelpers.CreateBitArray_:IBitArray;
begin
result := ZXing.Common.BitArrayImplementation.NewBitArray;
end;
class function TBitArrayHelpers.CreateBitArray(const Size: Integer):IBitArray;
begin
result := ZXing.Common.BitArrayImplementation.NewBitArray(size);
end;
[DCC Error] ZXing.Common.BitArray.pas(52): E2266 Only one method from a group of overloaded methods can be published
Delphi 10.x
unit ZXing.Common.BitArray;
Line 51 - 64
old ` unit ZXing.Common.BitArray;
interface
type IBitArray = interface ['{3D65F451-E408-4015-A637-73CD05877BCB}'] // property getters and setters function GetBit(i: Integer): Boolean; procedure SetBit(i: Integer; Value: Boolean); function GetBits: TArray;
end;
TBitArrayHelpers = class class function CreateBitArray:IBitArray; overload; class function CreateBitArray(const Size: Integer):IBitArray; overload; end;
implementation uses ZXing.Common.BitArrayImplementation;
class function TBitArrayHelpers.CreateBitArray:IBitArray; begin result := ZXing.Common.BitArrayImplementation.NewBitArray; end;
class function TBitArrayHelpers.CreateBitArray(const Size: Integer):IBitArray; begin result := ZXing.Common.BitArrayImplementation.NewBitArray(size); end;
end. `
fixed
` unit ZXing.Common.BitArray;
interface
type IBitArray = interface ['{3D65F451-E408-4015-A637-73CD05877BCB}'] // property getters and setters function GetBit(i: Integer): Boolean; procedure SetBit(i: Integer; Value: Boolean); function GetBits: TArray;
end;
TBitArrayHelpers = class class function CreateBitArray_:IBitArray; overload; class function CreateBitArray(const Size: Integer):IBitArray; overload; end;
implementation uses ZXing.Common.BitArrayImplementation;
class function TBitArrayHelpers.CreateBitArray_:IBitArray; begin result := ZXing.Common.BitArrayImplementation.NewBitArray; end;
class function TBitArrayHelpers.CreateBitArray(const Size: Integer):IBitArray; begin result := ZXing.Common.BitArrayImplementation.NewBitArray(size); end;
end. `