(data []byte)
| 911 | } |
| 912 | |
| 913 | func decodeBool(data []byte) (bool, error) { |
| 914 | if len(data) < 1 { |
| 915 | return false, fmt.Errorf("insufficient data for bool: got %d bytes, need 1", len(data)) |
| 916 | } |
| 917 | return data[0] != 0, nil |
| 918 | } |
| 919 | |
| 920 | func decodeInt2(data []byte) (int16, error) { |
| 921 | if len(data) < 2 { |
no outgoing calls