indexing
description: "Serialize/Deserialize data from a medium."
legal: "See notice at end of class."
status: "See notice at end of class."
date: "$Date: 2006-01-22 18:25:44 -0800 (Sun, 22 Jan 2006) $"
revision: "$Revision: 56675 $"
class interface
SED_MEDIUM_READER_WRITER_1
create
make (a_medium: IO_MEDIUM)
`a_medium'
require
a_medium_not_void: a_medium /= Void
ensure
medium_set: medium = a_medium
buffer_size_set: buffer_size = default_buffer_size
make_with_buffer (a_medium: IO_MEDIUM; a_buffer_size: INTEGER_32)
`a_medium'`a_buffer_size'
buffer_sizebuffer_size
require
a_medium_not_void: a_medium /= Void
a_buffer_size_non_negative: a_buffer_size >= 0
ensure
medium_set: medium = a_medium
buffer_size_set: buffer_size = a_buffer_size
feature
generating_type: STRING_8
ANY
generator: STRING_8
ANY
read_boolean: BOOLEAN
SED_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_character_8: CHARACTER_8
SED_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_compressed_integer_32: INTEGER_32
read_compressed_natural_32
SED_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_compressed_natural_32: NATURAL_32
SED_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_integer_16: INTEGER_16
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_integer_32: INTEGER_32
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_integer_64: INTEGER_64
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_integer_8: INTEGER_8
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_natural_16: NATURAL_16
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_natural_32: NATURAL_32
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_natural_64: NATURAL_64
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_natural_8: NATURAL_8
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_pointer: POINTER
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_real_32: REAL_32
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_real_64: REAL_64
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_string_8: STRING_8
SED_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
ensure SED_READER_WRITER
read_string_8_not_void: Result /= Void
feature
frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies some.same_type (other)
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
frozen standard_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
is_for_reading: BOOLEAN
SED_BINARY_READER_WRITER
is_pointer_value_stored: BOOLEAN
SED_READER_WRITER
is_ready_for_reading: BOOLEAN
require SED_READER_WRITER
True
is_ready_for_writing: BOOLEAN
require SED_READER_WRITER
True
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
feature
write_boolean (v: BOOLEAN)
`v'
SED_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_character_8 (v: CHARACTER_8)
`v'
SED_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_compressed_integer_32 (v: INTEGER_32)
`v'
write_compressed_natural_32
SED_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_compressed_natural_32 (v: NATURAL_32)
`v'
`v'
`x'
`v'
`v'
`v'
SED_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_integer_16 (v: INTEGER_16)
`v'
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_integer_32 (v: INTEGER_32)
`v'
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_integer_64 (v: INTEGER_64)
`v'
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_integer_8 (v: INTEGER_8)
`v'
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_natural_16 (v: NATURAL_16)
`v'
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_natural_32 (v: NATURAL_32)
`v'
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_natural_64 (v: NATURAL_64)
`v'
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_natural_8 (v: NATURAL_8)
`v'
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_pointer (v: POINTER)
`v'
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_real_32 (v: REAL_32)
`v'
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_real_64 (v: REAL_64)
`v'
SED_BINARY_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_string_8 (v: STRING_8)
`v'
SED_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_writing
v_not_void: v /= Void
feature
copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen deep_copy (other: like Current)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: like Current
ANY
ensure ANY
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: like Current
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: like Current
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: like Current
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
read_footer
SED_READER_WRITER
require SED_READER_WRITER
is_ready: is_ready_for_reading
read_header
require SED_READER_WRITER
is_ready: is_ready_for_reading
ensure then
buffer_position_reset: buffer_position = 0
write_footer
require SED_READER_WRITER
is_ready: is_ready_for_writing
write_header
require SED_READER_WRITER
is_ready: is_ready_for_writing
ensure then
buffer_position_reset: buffer_position = 0
feature
io: STD_FILES
ANY
out: STRING_8
ANYtagged_out
ANY
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
feature
set_for_reading
SED_BINARY_READER_WRITER
ensure SED_BINARY_READER_WRITER
is_for_reading: is_for_reading
set_for_writing
SED_BINARY_READER_WRITER
ensure SED_BINARY_READER_WRITER
is_for_writing: not is_for_reading
set_is_pointer_value_stored (v: like is_pointer_value_stored)
is_pointer_value_stored`v'
SED_READER_WRITER
ensure SED_READER_WRITER
is_pointer_value_stored_set: is_pointer_value_stored = v
invariant
medium_not_void: medium /= Void
SED_BINARY_READER_WRITER
buffer_not_void: buffer /= Void
buffer_size_non_negative: buffer_size >= 0
buffer_position_non_negative: buffer_position >= 0
stored_pointer_bytes_non_negative: stored_pointer_bytes >= 0
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
indexing
library: "EiffelBase: Library of reusable components for Eiffel."
copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
356 Storke Road, Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end SED_MEDIUM_READER_WRITER_1