()
| 61 | } |
| 62 | |
| 63 | func (r *binaryReader) ReadInt32() (int32, error) { |
| 64 | b, err := r.read(4) |
| 65 | if len(b) < 4 { |
| 66 | return 0, err |
| 67 | } |
| 68 | return int32(binary.BigEndian.Uint32(b)), nil |
| 69 | } |
| 70 | |
| 71 | func (r *binaryReader) ReadInt64() (int64, error) { |
| 72 | b, err := r.read(8) |
no test coverage detected