MCPcopy Create free account
hub / github.com/apple/coremltools / parse_msgpack_internal

Method parse_msgpack_internal

deps/nlohmann/json.hpp:9097–9465  ·  view source on GitHub ↗

! @return whether a valid MessagePack value was passed to the SAX parser */

Source from the content-addressed store, hash-verified

9095 @return whether a valid MessagePack value was passed to the SAX parser
9096 */
9097 bool parse_msgpack_internal()
9098 {
9099 switch (get())
9100 {
9101 // EOF
9102 case std::char_traits<char_type>::eof():
9103 return unexpect_eof(input_format_t::msgpack, "value");
9104
9105 // positive fixint
9106 case 0x00:
9107 case 0x01:
9108 case 0x02:
9109 case 0x03:
9110 case 0x04:
9111 case 0x05:
9112 case 0x06:
9113 case 0x07:
9114 case 0x08:
9115 case 0x09:
9116 case 0x0A:
9117 case 0x0B:
9118 case 0x0C:
9119 case 0x0D:
9120 case 0x0E:
9121 case 0x0F:
9122 case 0x10:
9123 case 0x11:
9124 case 0x12:
9125 case 0x13:
9126 case 0x14:
9127 case 0x15:
9128 case 0x16:
9129 case 0x17:
9130 case 0x18:
9131 case 0x19:
9132 case 0x1A:
9133 case 0x1B:
9134 case 0x1C:
9135 case 0x1D:
9136 case 0x1E:
9137 case 0x1F:
9138 case 0x20:
9139 case 0x21:
9140 case 0x22:
9141 case 0x23:
9142 case 0x24:
9143 case 0x25:
9144 case 0x26:
9145 case 0x27:
9146 case 0x28:
9147 case 0x29:
9148 case 0x2A:
9149 case 0x2B:
9150 case 0x2C:
9151 case 0x2D:
9152 case 0x2E:
9153 case 0x2F:
9154 case 0x30:

Callers

nothing calls this directly

Calls 11

get_token_stringFunction · 0.85
createFunction · 0.85
getFunction · 0.70
number_unsignedMethod · 0.45
stringMethod · 0.45
nullMethod · 0.45
booleanMethod · 0.45
binaryMethod · 0.45
number_floatMethod · 0.45
number_integerMethod · 0.45
parse_errorMethod · 0.45

Tested by

no test coverage detected