azist / azos

A to Z Sky Operating System / Microservice Chassis Framework
MIT License
213 stars 29 forks source link

`Azos.IO.Archiving.Page` Review page buffer allocation #863

Open itadapter opened 1 year ago

itadapter commented 1 year ago

Why is the default capacity assigned to zero?

    public Page(int defaultCapacity)
    {
      m_Raw = new MemoryStream(m_DefaultCapacity);//<===== is this not always ZERO in ctor???
      AdjustDefaultCapacity(defaultCapacity);
    }