glymur/jp2box.py
def write(self, fptr):
        """Write a fragment list box to file.
        """
        self._validate(writing=True)
        num_items = len(self.fragment_offset)
        length = 8 + 2 + num_items * 14
        fptr.write(struct.pack('>I4s', length, b'flst'))
        fptr.write(struct.pack('>H', num_items))
        for j in range(num_items):
            write_buffer = struct.pack('>QIH',
                                       self.fragment_offset[j],
                                       self.fragment_length[j],
                                       self.data_reference[j])
            fptr.write(write_buffer)
Write a fragment list box to file.
        
Write a fragment list box to file.
Write a fragment list box to file .
def write(self, fptr):
        self._validate(writing=True)
        num_items = len(self.fragment_offset)
        length = 8 + 2 + num_items * 14
        fptr.write(struct.pack('>I4s', length, b'flst'))
        fptr.write(struct.pack('>H', num_items))
        for j in range(num_items):
            write_buffer = struct.pack('>QIH',
                                       self.fragment_offset[j],
                                       self.fragment_length[j],
                                       self.data_reference[j])
            fptr.write(write_buffer)
def write ( self , fptr ) : self . _validate ( writing = True ) num_items = len ( self . fragment_offset ) length = 8 + 2 + num_items * 14 fptr . write ( struct . pack ( '>I4s' , length , b'flst' ) ) fptr . write ( struct . pack ( '>H' , num_items ) ) for j in range ( num_items ) : write_buffer = struct . pack ( '>QIH' , self . fragment_offset [ j ] , self . fragment_length [ j ] , self . data_reference [ j ] ) fptr . write ( write_buffer )
Write a fragment list box to file.
Write a fragment list box to file .
"""Write a fragment list box to file.
        """
self
fptr