class_docstr: Compact implementation of the Thrift protocol driver.
class_docstr_tok: ["Compact","implementation","of","the","Thrift","protocol","driver","."]
code: def readMapBegin(self):
      assert self.state in (VALUE_READ, CONTAINER_READ), self.state
      size = self.__readSize()
      self._check_container_length(size)
      types = 0
      if size > 0:
          types = self.__readUByte()
      vtype = self.__getTType(types)
      ktype = self.__getTType(types >> 4)
      self.__containers.append(self.state)
      self.state = CONTAINER_READ
      return (ktype, vtype, size)
  
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 37 for calling the TCompactProtocol obj's underlying member method code with example usage: obj.readMapBegin() and returns: ktype,  vtype,  size