Lines Matching refs:numUnits
641 def writeBinSearchHeader(writer, numUnits, unitSize): argument
643 writer.writeUShort(numUnits)
645 getSearchRange(n=numUnits, itemSize=unitSize)
678 numUnits, unitSize = len(segments) + 1, valueSize + 4
679 return (2 + self.BIN_SEARCH_HEADER_SIZE + numUnits * unitSize, 2,
685 numUnits, unitSize = len(segments), valueSize + 4
686 self.writeBinSearchHeader(writer, numUnits, unitSize)
699 numUnits, unitSize = len(values), valueSize + 2
700 return (2 + self.BIN_SEARCH_HEADER_SIZE + (numUnits + 1) * unitSize, 6,
706 numUnits, unitSize = len(values), valueSize + 2
707 self.writeBinSearchHeader(writer, numUnits, unitSize)
744 unitSize, numUnits = reader.readUShort(), reader.readUShort()
746 for i in range(numUnits):