PeekType peeks at the type of the value encoded at the start of b.
(b []byte)
| 1291 | |
| 1292 | // PeekType peeks at the type of the value encoded at the start of b. |
| 1293 | func PeekType(b []byte) Type { |
| 1294 | if len(b) >= 1 { |
| 1295 | return typMap[b[0]] |
| 1296 | } |
| 1297 | return Unknown |
| 1298 | } |
| 1299 | |
| 1300 | // slowPeekType is the old implementation of PeekType. It's used to generate |
| 1301 | // the lookup table for PeekType. |
no outgoing calls
no test coverage detected
searching dependent graphs…