System.Classes.TMemoryStream.Capacity

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Capacity: NativeInt read FCapacity write SetCapacity;

C++

__property NativeInt Capacity = {read=FCapacity, write=SetCapacity, nodefault};

Properties

Type Visibility Source Unit Parent
property protected
System.Classes.pas
System.Classes.hpp
System.Classes TMemoryStream

Description

Specifies the buffer size allocated for the memory stream.

Use the Capacity property to read or change the capacity of the memory stream.

Capacity is different from the Size property, which is the size of the stream, in bytes. The value of Capacity is always greater than or equal to the value of Size.

See Also