MCPcopy Index your code
hub / github.com/apache/dubbo-python2 / read_boolean

Method read_boolean

dubbo/codec/decoder.py:104–115  ·  view source on GitHub ↗

读取一个布尔类型 :return:

(self)

Source from the content-addressed store, hash-verified

102
103 @ranges(ord('T'), ord('F'))
104 def read_boolean(self):
105 """
106 读取一个布尔类型
107 :return:
108 """
109 value = self.read_byte()
110 if value == ord('T'):
111 return True
112 elif value == ord('F'):
113 return False
114 else:
115 raise HessianTypeError('illegal boolean value: {0}'.format(value))
116
117 @ranges((0x80, 0xd7), ord('I'))
118 def read_int(self):

Callers

nothing calls this directly

Calls 3

read_byteMethod · 0.95
HessianTypeErrorClass · 0.90
formatMethod · 0.80

Tested by

no test coverage detected