(w *bytes.Buffer)
| 55 | func (t Tuple) isDroppable() bool { return true } |
| 56 | |
| 57 | func (i Int) encode(w *bytes.Buffer) { |
| 58 | if op.IsSmallInt(int64(i)) { |
| 59 | w.WriteByte(op.MinSmallInt + byte(i)) |
| 60 | return |
| 61 | } |
| 62 | var buf [binary.MaxVarintLen64]byte |
| 63 | n := binary.PutUvarint(buf[:], uint64(i)) |
| 64 | writePushdata(w, buf[:n]) |
| 65 | w.WriteByte(op.Int) |
| 66 | } |
| 67 | |
| 68 | func (b Bytes) encode(w *bytes.Buffer) { |
| 69 | writePushdata(w, b) |
nothing calls this directly
no test coverage detected