Here you go — DeHL 0.8

DeHL

This is going to be a short one. After months of no releases, here it is: DeHL 0.8 (see changelog for the list of changes on this release). As I mentioned previously, this release will only work on Delphi 2010, since the number of changes required to support serialization was quite big.

I must confess, this is the first time in my programming career that I had to interact with serialization (excluding the times when the frameworks do that for you). I had to learn quite a bit and changed my internal design three times.

So, here’s an example how to serialize a TFormatSettings structure into binary format:

var
  LBinFile: TFileStream;
  LBinSerializer: TBinarySerializer<TFormatSettings>;
  LSettings: TFormatSettings;
begin
  { Obtain current thread's format settings }
  GetFormatSettings(GetThreadLocale(), LSettings);

  { Create a serializer and a file stream }
  LBinSerializer := TBinarySerializer<TFormatSettings>.Create();
  LBinFile := TFileStream.Create('dump_obj.bin', fmCreate);

  { Serialize the structure }
  try
    LBinSerializer.Serialize(LSettings, LBinFile);
  finally
    LBinFile.Free;
    LBinSerializer.Free;
  end;
end;

… and here’s an example how to deserialize it:

var
  LBinFile: TFileStream;
  LBinSerializer: TBinarySerializer<TFormatSettings>;
  LSettings: TFormatSettings;
begin
  { Create a serializer and a file stream }
  LBinSerializer := TBinarySerializer<TFormatSettings>.Create();
  LBinFile := TFileStream.Create('dump_obj.bin', fmOpenRead);

  { Deserialize the structure }
  try
    LBinSerializer.Deserialize(LSettings, LBinFile);
  finally
    LBinFile.Free;
    LBinSerializer.Free;
  end;
end;

Note: I have written quite a few unit tests to support the new changes, but most certainly there are hidden bugs. If you find one please report it here.

Other Note: I exhausted my idea jar regarding new features. If you have an idea please do not hesitate to drop me a comment or an email.

Have Fun!

1 2

54 Responses to 'Here you go — DeHL 0.8'

  1. For more ordinary-looking women, some level of work is required.
    Sitting tight and waiting for him won’t give you what you
    want. When the drama of the break up passes he may realize he
    wants you back.

  2. When you call make sure you emotions are under control.
    Tell him you hope he will be as happy as you are and end the conversation. But,
    if he needs a challenge, you should give him one.

  3. They are essential in the diet of humans for the expansion and reinstating
    of tissue and that is why you should consume huge amount of protein if you want to grow
    taller. Again, you can start off with the most basic routines that you know from
    your school days and then increase the intensity gradually.
    If you are going to buy anything make sure that it has a good refund
    policy so that you don’t end up wasting money in case it does not give you
    the desired result.

  4. Money says:

    There is a myth surrounding the offshore investment accounts
    that offshore investment accounts are only of millionaires and
    billionaires due to huge amount of funds required for investments.
    Regardless of your choices, I suggest that you gather some
    food and alcohol, if you want it. As you will have
    no doubt noticed all of these apps offer a chance to upgrade to a premium account (or Gold account, or
    full version) where adverts are not included.

1 2

Leave a Reply to Money Cancel reply

Your email address will not be published.