Decode Integer Value from wire format
(data []byte)
| 269 | |
| 270 | // Decode Integer Value from wire format |
| 271 | func (Integer) decode(data []byte) (Value, error) { |
| 272 | if len(data) != 4 { |
| 273 | return nil, errors.New("value must be 4 bytes") |
| 274 | } |
| 275 | |
| 276 | return Integer(int32(binary.BigEndian.Uint32(data))), nil |
| 277 | } |
| 278 | |
| 279 | // Boolean is the Value that contains true of false |
| 280 | // |
nothing calls this directly
no test coverage detected