![]() |
Section 8.2.2.2: |
![]() |
This class is the first primitive immutable class which has eight bits, but otherwise may have any meaning. Operations for creation, conversion and individual bit testing and manipulation are provided in addition to equality testing (which is solely a test of identical bit-patterns).
The following feature is required to be implemented for this class in accordance with the specification given in $IS_EQ of which $BIT_PATTERN is a sub-type :-
The following features are required to be implemented for this class in accordance with the specifications given by inheritance in $STR of which $BIT_PATTERN is a sub-type :-
The following feature is required to be implemented for this class in accordance with the specification given in $HASH of which $BIT_PATTERN is a sub-type :-
The following features are required to be implemented for this class in accordance with the specifications given in $BINARY of which $BIT_PATTERN is a sub-type :-
The following features are required to be implemented for this class in accordance with the specifications given in the abstract class $BIT_PATTERN :-
This reader routine provides the same value as asize - for an octet!
Since this is a reader routine, the pre-condition is vacuously true.
This reader routine returns the number of bits contained in an octet (8!).
This reader routine returns the maximum unsigned value which can be represented in an octet bit-pattern.
Since this is a reader routine, the pre-condition is vacuously true.
This reader routine returns the maximum numeric value representable as an exact unsigned number in the octet bit-pattern.
This creation feature returns a new octet all the bits of which are clear (ie having the value clearbit.
create | : SAME |
Because there are no arguments to this feature, the pre-condition is vacuously true.
This routine creates a new octet value all the components of which are clear.
This creation routine returns a new octet in which the bit-pattern is the representation of val.
This routine returns a new octet which takes the value val as a bit-pattern.
This third creation routine returns a new octet in which the bit-pattern is the representation of the character val in eight bits.
This routine returns a new octet which takes the value val as a bit-pattern.
![]() |
Language Index | ![]() |
Library Index | ![]() |
Binary Index |
Comments or enquiries should be made to
Keith
Hopper. Page last modified: Wednesday, 22 November 2000. |
![]() |