Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Delphi’s TStream.Read returns the number of bytes read (https://www.delphipraxis.net/203583-delphi%92s-tstream-read-returns-number-bytes-read.html)

DP News-Robot 2. Mär 2020 15:10

Delphi’s TStream.Read returns the number of bytes read
 
Note to self: TStream.Read in the Delphi RTL returns the number of bytes read. It does not check whether the intended number of bytes could actually be read. So if you do not check it yourself, call TStream.ReadBuffer instead. So, it’s either: or The same logic applies to TStream.Write and TStream.WriteBuffer. I have just grep-ed [...]

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:56 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz