Jump to content

Ada Programming/Attributes/'Stream Size

From Wikibooks, open books for an open world

Description

[edit | edit source]

Number of bits read from or written to a stream by the default implementations of S’Read and S’Write.

If S is definite, denotes the size (in bits) that the implementation would choose for the following objects of subtype S:

  • A record component of subtype S when the record type is packed.
  • The formal parameter of an instance of Unchecked_Conversion that converts from subtype S to some other subtype.

If S is indefinite, the meaning is implementation defined. The value of this attribute is of the type universal_integer.

Example

[edit | edit source]
SStream_Size return universal_integer