(self, ktype, vtype, size)
| 234 | writeListBegin = writeCollectionBegin |
| 235 | |
| 236 | def writeMapBegin(self, ktype, vtype, size): |
| 237 | assert self.state in (VALUE_WRITE, CONTAINER_WRITE), self.state |
| 238 | if size == 0: |
| 239 | self.__writeByte(0) |
| 240 | else: |
| 241 | self.__writeSize(size) |
| 242 | self.__writeUByte(CTYPES[ktype] << 4 | CTYPES[vtype]) |
| 243 | self.__containers.append(self.state) |
| 244 | self.state = CONTAINER_WRITE |
| 245 | |
| 246 | def writeCollectionEnd(self): |
| 247 | assert self.state == CONTAINER_WRITE, self.state |
nothing calls this directly
no test coverage detected