Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for writeUleb128FixedLength (0.17 sec)

  1. src/cmd/link/internal/wasm/asm.go

    		if more {
    			c |= 0x80
    		}
    		w.WriteByte(c)
    	}
    }
    
    func writeUleb128FixedLength(w io.ByteWriter, v uint64, length int) {
    	for i := 0; i < length; i++ {
    		c := uint8(v & 0x7f)
    		v >>= 7
    		if i < length-1 {
    			c |= 0x80
    		}
    		w.WriteByte(c)
    	}
    	if v != 0 {
    		panic("writeUleb128FixedLength: length too small")
    	}
    }
    
    func writeSleb128(w io.ByteWriter, v int64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top