code: def pack_and_write( self, format, value ):
          
          pattern = "%s%s" % ( self.endian_code, format )
          return self.file.write( struct.pack( pattern, value ) )
docs: Read enough bytes to unpack according to `format` and return the
          tuple of unpacked values.