- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for AppendUleb128 (0.19 sec)
-
src/internal/coverage/encodemeta/encode.go
fd := funcDesc{} b.tmp = b.tmp[:0] b.tmp = uleb128.AppendUleb128(b.tmp, uint(len(f.Units))) b.tmp = uleb128.AppendUleb128(b.tmp, uint(b.stab.Lookup(f.Funcname))) b.tmp = uleb128.AppendUleb128(b.tmp, uint(b.stab.Lookup(f.Srcfile))) for _, u := range f.Units { b.tmp = uleb128.AppendUleb128(b.tmp, uint(u.StLine)) b.tmp = uleb128.AppendUleb128(b.tmp, uint(u.StCol)) b.tmp = uleb128.AppendUleb128(b.tmp, uint(u.EnLine))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 17:16:10 UTC 2024 - 5.5K bytes - Viewed (0) -
src/internal/coverage/slicereader/slr_test.go
bt = make([]byte, 8) e64 := uint64(907050301) binary.LittleEndian.PutUint64(bt, e64) b = append(b, bt...) b = appendUleb128(b, uint(e32)) b = appendUleb128(b, uint(e64)) b = appendUleb128(b, 6) s1 := "foobar" s1b := []byte(s1) b = append(b, s1b...) b = appendUleb128(b, 9) s2 := "bazbasher" s2b := []byte(s2) b = append(b, s2b...) readStr := func(slr *Reader) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:28 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/internal/dwarf/dwarf_test.go
if s == nil { continue } b := AppendUleb128(nil, uint64(v)) if !reflect.DeepEqual(b, s) { t.Errorf("sevenBitU(%d) = %v but AppendUleb128(%d) = %v", v, s, v, b) } } }) t.Run("signed", func(t *testing.T) { for v := int64(-255); v < 255; v++ { s := sevenBitS(v) if s == nil { continue } b := AppendSleb128(nil, v) if !reflect.DeepEqual(b, s) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 27 17:58:53 UTC 2017 - 828 bytes - Viewed (0) -
src/internal/coverage/stringtab/stringtab.go
// version of a stringtab.Writer. func (stw *Writer) Size() uint32 { rval := uint32(0) stw.tmp = stw.tmp[:0] stw.tmp = uleb128.AppendUleb128(stw.tmp, uint(len(stw.strs))) rval += uint32(len(stw.tmp)) for _, s := range stw.strs { stw.tmp = stw.tmp[:0] slen := uint(len(s)) stw.tmp = uleb128.AppendUleb128(stw.tmp, slen) rval += uint32(len(stw.tmp)) + uint32(slen) } return rval }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 12:40:42 UTC 2022 - 3.6K bytes - Viewed (0) -
src/internal/coverage/uleb128/uleb128.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package uleb128 func AppendUleb128(b []byte, v uint) []byte { for { c := uint8(v & 0x7f) v >>= 7 if v != 0 { c |= 0x80 } b = append(b, c) if c&0x80 == 0 { break } } return b
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 26 20:51:52 UTC 2022 - 360 bytes - Viewed (0) -
src/internal/coverage/encodecounter/encode.go
akeys := make([]string, 0, len(args)) for k := range args { akeys = append(akeys, k) } slices.Sort(akeys) wrULEB128 := func(v uint) error { cfw.tmp = cfw.tmp[:0] cfw.tmp = uleb128.AppendUleb128(cfw.tmp, v) if _, err := ws.Write(cfw.tmp); err != nil { return err } return nil } // Count of arg pairs. if err := wrULEB128(uint(len(args))); err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.8K bytes - Viewed (0) -
src/cmd/internal/dwarf/dwarf.go
var buf []byte for i := 1; i < len(abbrevs); i++ { // See section 7.5.3 buf = AppendUleb128(buf, uint64(i)) buf = AppendUleb128(buf, uint64(abbrevs[i].tag)) buf = append(buf, abbrevs[i].children) for _, f := range abbrevs[i].attr { buf = AppendUleb128(buf, uint64(f.attr)) buf = AppendUleb128(buf, uint64(f.form)) } buf = append(buf, 0, 0) } return append(buf, 0) } /*
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 43K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/debug.go
list = dwarf.AppendSleb128(list, int64(loc.stackOffsetValue())) } } else { regnum := state.ctxt.Arch.DWARFRegisters[state.registers[firstReg(loc.Registers)].ObjNum()] if regnum < 32 { list = append(list, dwarf.DW_OP_reg0+byte(regnum)) } else { list = append(list, dwarf.DW_OP_regx) list = dwarf.AppendUleb128(list, uint64(regnum)) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 58.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf.go
deltaBuf = dwarf.AppendUleb128(deltaBuf, uint64(thearch.Dwarfreglr)) deltaBuf = dwarf.AppendSleb128(deltaBuf, -spdelta/dataAlignmentFactor) } else { // The return address is restored into the link register // when a stack frame has been de-allocated. deltaBuf = append(deltaBuf, dwarf.DW_CFA_same_value) deltaBuf = dwarf.AppendUleb128(deltaBuf, uint64(thearch.Dwarfreglr)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 72.4K bytes - Viewed (0)