wireReadVersionByte reads the initial byte of a stream to validate version
(version byte)
| 675 | |
| 676 | // wireReadVersionByte reads the initial byte of a stream to validate version |
| 677 | func wireProcessVersionByte(version byte) (isValid bool, headerLength int) { |
| 678 | return wireProcessVersionByteTrace(version, false) |
| 679 | } |
| 680 | |
| 681 | // wireProcessVersionByteTrace processes version byte with optional verbose debugging output |
| 682 | func wireProcessVersionByteTrace(version byte, trace bool) (isValid bool, headerLength int) { |
no test coverage detected