![]() |
Coming Delphi 10.4 Runtime Library Enhancements
http://blog.marcocantu.com/images/fo...et-Excited.png
Delphi Runtime Library is one of the foundations of the product, as the UI libraries such as VCL and FireMonkey and also database access libraries and many third party components reply on the core RTL. That is why changes to the RTL are particularly relevant, as they tend to affect all developers. Here are some key changes about to become available. Bit Counting Standard Functions We have introduced new standard functions for common low-level bit processing operations, listed below.
The CopyFrom function of the base TStream class used to have a fixed constant buffer for copying data (set to 60K). This can be very inefficient for copying large streams. The new default is 1MB, but the method has an additional parameter you can use to provide a specific buffer size depending on the copy operation you are doing (source and target streams). The new signature of the method is // class TStream function CopyFrom(const Source: TStream; Count: Int64 = 0; BufferSize: Integer = $100000): Int64; Performance Optimization
We updated the signature of the FreeAndNil procedure, to avoid its use with interface references and other unsupported data types. It is now declared to require a reference to a TObject: procedure FreeAndNil(const [ref] Obj: TObject); inline; This means that incorrect usage of FreeAndNil will now cause a compiler error. In the past, incorrect usage would not be caught, leading to difficult bugs. Note that although the parameter is declared as const, the by-reference variable is indeed modified. Additional Assorted Features
This is a preview of an upcoming release of RAD Studio. There can always be last-minute bugs or changes. Nothing here is final until the release is officially made available. Sign up for our ![]() http://feeds.feedburner.com/~r/marco...~4/AhjqOsgmIfQ ![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:16 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz