| synopsis || return value || arguments || prev || next |

jp2_input_box::open

Java: Jp2_input_box::Open

Overload navigation: 1, 2

virtual bool open( jp2_input_box * super_box)

Java: boolean Open( Jp2_input_box super_box)

[Declared in "../apps/compressed_io/jp2.h"]

Go to class description.


Synopsis

Opens the box as a sub-box of the indicated super_box. You may think of the present box and the super-box as sharing a common "read pointer" so that once the present box is closed, reading may continue within the super-box from the point where we left off. The super-box is "locked" so long as any sub-box is open; an error will be generated if any attempt is made to read from a super-box which is locked in this way. While the sub-box is being read, values returned by super_box→get_remaining_bytes or super_box→get_pos are unstable and cannot be trusted.

If this function fails to open a new box, the function returns false, leaving the box closed (the exists function will return false). This may happen if one of the following conditions occur:


Return Value

True if a new box was opened, else false.

Arguments

super_box [jp2_input_box *]


| top || synopsis || return value || arguments || prev || next |