class_docstr: Compact implementation of the Thrift protocol driver.
class_docstr_tok: ["Compact","implementation","of","the","Thrift","protocol","driver","."]
code: def __writeFieldHeader(self, type, fid):
      delta = fid - self.__last_fid
      if 0 < delta <= 15:
          self.__writeUByte(delta << 4 | type)
      else:
          self.__writeByte(type)
          self.__writeI16(fid)
      self.__last_fid = fid
  
imports: from .TProtocol import TType, TProtocolBase, TProtocolException, TProtocolFactory, checkIntegerLimits
  from struct import pack, unpack
  from ..compat import binary_to_str, str_to_binary
label_desc: Use image node_id 10 for calling the TCompactProtocol obj's underlying member method code with example usage: obj.__writeFieldHeader(type, fid) without return types