(l int64)
| 69 | } |
| 70 | |
| 71 | func (e *Encoder) writeLong(l int64) error { |
| 72 | return e.writeBytes( |
| 73 | byte(l>>56), |
| 74 | byte(l>>48), |
| 75 | byte(l>>40), |
| 76 | byte(l>>32), |
| 77 | byte(l>>24), |
| 78 | byte(l>>16), |
| 79 | byte(l>>8), |
| 80 | byte(l), |
| 81 | ) |
| 82 | } |
| 83 | |
| 84 | func (e *Encoder) writeFloat(f float32) error { |
| 85 | return e.writeInt(int32(math.Float32bits(f))) |
no test coverage detected