pub fn emit<CS: CodeSink>(&self, sink: &mut CS) {
        assert!(sink.offset() == self.start_offset);

        let mut next_reloc = 0;
        for (idx, byte) in self.data.iter().enumerate() {
            if next_reloc < self.relocs.len() {
                let reloc = &self.relocs[next_reloc];
                if reloc.offset == idx as CodeOffset {
                    sink.reloc_external(reloc.kind, &reloc.name, reloc.addend);
                    next_reloc += 1;
                }
            }
            sink.put1(*byte);
        }
    }
/// Emit this section to the CodeSink and other associated sinks.  The
/// current offset of the CodeSink must match the starting offset of this
/// section.
Emit this section to the CodeSink and other associated sinks.  The
current offset of the CodeSink must match the starting offset of this
section.
Emit this section to the CodeSink and other associated sinks . The current offset of the CodeSink must match the starting offset of this section .
pub fn emit<CS: CodeSink>(&self, sink: &mut CS) {
        assert!(sink.offset() == self.start_offset);
        let mut next_reloc = 0;
        for (idx, byte) in self.data.iter().enumerate() {
            if next_reloc < self.relocs.len() {
                let reloc = &self.relocs[next_reloc];
                if reloc.offset == idx as CodeOffset {
                    sink.reloc_external(reloc.kind, &reloc.name, reloc.addend);
                    next_reloc += 1;
                }
            }
            sink.put1(*byte);
        }
    }
pub fn emit < CS : CodeSink > ( & self , sink : & mut CS ) { assert ! ( sink offset ( ) self start_offset ) ; let mut next_reloc = 0 ; for ( idx , byte ) in self . data . iter ( ) . enumerate ( ) { if next_reloc < self . relocs . len ( ) { let reloc = & self . relocs [ next_reloc ] ; if reloc . offset == idx as CodeOffset { sink . reloc_external ( reloc . kind , & reloc . name , reloc . addend ) ; next_reloc += 1 ; } } sink . put1 ( * byte ) ; } }
Emit this section to the CodeSink and other associated sinks.
Emit this section to the CodeSink and other associated sinks .
&self
sink
&mut CS
&self
sink
&mut CS