Ignore:
Timestamp:
Nov 3, 2023, 11:15:31 AM (7 months ago)
Author:
chronos
Message:
  • Fixed: Show data content of storage file.
Location:
branches/ByteArray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ByteArray

    • Property svn:ignore
      •  

        old new  
        66ByteArray.res
        77ByteArray.dbg
         8Storage.dat
  • branches/ByteArray/BigInt.pas

    r47 r51  
    184184class operator TBigInt.Implicit(A: TBigInt): UInt64;
    185185begin
    186   if A.Size = 8 then Result := PUInt64(@A.FData[0])^
    187     else raise Exception.Create(SUnsupportedByteSize);
     186  if A.Size = 1 then Result := PUInt8(@A.FData[0])^
     187  else if A.Size = 2 then Result := PUInt16(@A.FData[0])^
     188  else if A.Size = 4 then Result := PUInt32(@A.FData[0])^
     189  else if A.Size = 8 then Result := PUInt64(@A.FData[0])^
     190  else raise Exception.Create(SUnsupportedByteSize);
    188191end;
    189192
    190193class operator TBigInt.Implicit(A: TBigInt): Int64;
    191194begin
    192   if A.Size = 8 then Result := PInt64(@A.FData[0])^
    193     else raise Exception.Create(SUnsupportedByteSize);
     195  if A.Size = 1 then Result := PInt8(@A.FData[0])^
     196  else if A.Size = 2 then Result := PInt16(@A.FData[0])^
     197  else if A.Size = 4 then Result := PInt32(@A.FData[0])^
     198  else if A.Size = 8 then Result := PInt64(@A.FData[0])^
     199  else raise Exception.Create(SUnsupportedByteSize);
    194200end;
    195201
Note: See TracChangeset for help on using the changeset viewer.