Lines Matching refs:Writer
33 // A Writer is an encoder for GC programs.
35 // The typical use of a Writer is to call Init, maybe call Debug,
38 type Writer struct {
43 debug io.Writer
49 func (w *Writer) Init(writeByte func(byte)) {
53 // Debug causes the writer to print a debugging trace to out
56 func (w *Writer) Debug(out io.Writer) {
61 func (w *Writer) BitIndex() int64 {
66 func (w *Writer) byte(x byte) {
74 func (w *Writer) End() {
90 func (w *Writer) Ptr(index int64) {
105 func (w *Writer) ShouldRepeat(n, c int64) bool {
118 func (w *Writer) Repeat(n, c int64) {
140 func (w *Writer) ZeroUntil(index int64) {
170 func (w *Writer) Append(prog []byte, n int64) {
244 func (w *Writer) lit(x byte) {
254 func (w *Writer) varint(x int64) {
266 func (w *Writer) flushlit() {