PeekType peeks at the type of the value encoded at the start of b.
(b []byte)
| 1802 | |
| 1803 | // PeekType peeks at the type of the value encoded at the start of b. |
| 1804 | func PeekType(b []byte) Type { |
| 1805 | if len(b) >= 1 { |
| 1806 | return typMap[b[0]] |
| 1807 | } |
| 1808 | return Unknown |
| 1809 | } |
| 1810 | |
| 1811 | // slowPeekType is the old implementation of PeekType. It's used to generate |
| 1812 | // the lookup table for PeekType. |
no outgoing calls
no test coverage detected
searching dependent graphs…