- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for AppendUleb128 (0.23 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/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)