glymur/jp2box.py
def write(self, fptr):
        """Write a File Type box to file.
        """
        self._validate(writing=True)
        length = 16 + 4 * len(self.compatibility_list)
        fptr.write(struct.pack('>I4s', length, b'ftyp'))
        fptr.write(self.brand.encode())
        fptr.write(struct.pack('>I', self.minor_version))

        for item in self.compatibility_list:
            fptr.write(item.encode())
Write a File Type box to file.
        
Write a File Type box to file.
Write a File Type box to file .
def write(self, fptr):
        self._validate(writing=True)
        length = 16 + 4 * len(self.compatibility_list)
        fptr.write(struct.pack('>I4s', length, b'ftyp'))
        fptr.write(self.brand.encode())
        fptr.write(struct.pack('>I', self.minor_version))
        for item in self.compatibility_list:
            fptr.write(item.encode())
def write ( self , fptr ) : self . _validate ( writing = True ) length = 16 + 4 * len ( self . compatibility_list ) fptr . write ( struct . pack ( '>I4s' , length , b'ftyp' ) ) fptr . write ( self . brand . encode ( ) ) fptr . write ( struct . pack ( '>I' , self . minor_version ) ) for item in self . compatibility_list : fptr . write ( item . encode ( ) )
Write a File Type box to file.
Write a File Type box to file .
"""Write a File Type box to file.
        """
self
fptr