| 42 | } |
| 43 | |
| 44 | int fromwire_peektypen(const u8 *cursor, size_t max) |
| 45 | { |
| 46 | be16 be_type; |
| 47 | |
| 48 | fromwire(&cursor, &max, &be_type, sizeof(be_type)); |
| 49 | if (!cursor) |
| 50 | return -1; |
| 51 | return be16_to_cpu(be_type); |
| 52 | } |
| 53 | |
| 54 | int fromwire_peektype(const u8 *cursor) |
| 55 | { |
no test coverage detected