- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for off (0.12 sec)
-
src/all.bat
if...
Batch File - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Apr 19 14:36:22 GMT 2023 - 543 bytes - Viewed (0) -
src/clean.bat
L1::: Copyright 2012 The Go Authors. All rights reserved. L2::: Use of this source code is governed by a BSD-style L3::: license that can be found in the LICENSE file. L4: L5:@echo off L6: L7:setlocal L8: L9:set GOBUILDFAIL=0 L10: L11:go tool dist env -w -p >env.bat L12:if errorlevel 1 goto fail L13:call .\env.bat L14:del env.bat L15:echo. L16: L17:if exist %GOTOOLDIR%\dist.exe goto distok L18:echo cannot find %GOTOOLDIR%\dist; nothing to clean L19:goto fail L20::distok L21: ...
Batch File - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu May 12 16:59:17 GMT 2022 - 600 bytes - Viewed (0) -
src/archive/zip/zip_test.go
} buf := make([]byte, ss.Size()) for off := int64(0); off < ss.Size(); off++ { for size := 1; size <= int(ss.Size()-off); size++ { readBuf := buf[:size] n, err := ss.ReadAt(readBuf, off) if off < ss.Size()-keep { if err != errDiscardedBytes { t.Errorf("off %d, size %d = %v, %v (%q); want errDiscardedBytes", off, size, n, err, readBuf[:n]) } continue }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Mar 27 18:23:49 GMT 2024 - 19.5K bytes - Viewed (0) -
src/bytes/buffer.go
// don't spend all our time copying. copy(b.buf, b.buf[b.off:]) } else if c > maxInt-c-n { panic(ErrTooLarge) } else { // Add b.off to account for b.buf[:b.off] being sliced off the front. b.buf = growSlice(b.buf[b.off:], b.off+n) } // Restore b.off and len(b.buf). b.off = 0 b.buf = b.buf[:m+n] return m }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 17:10:31 GMT 2023 - 15.7K bytes - Viewed (0) -
src/bytes/reader_test.go
r := NewReader([]byte("0123456789")) tests := []struct { off int64 seek int n int want string wantpos int64 readerr error seekerr string }{ {seek: io.SeekStart, off: 0, n: 20, want: "0123456789"}, {seek: io.SeekStart, off: 1, n: 1, want: "1"}, {seek: io.SeekCurrent, off: 1, wantpos: 3, n: 2, want: "34"}, {seek: io.SeekStart, off: -1, seekerr: "bytes.Reader.Seek: negative position"},
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Dec 13 18:45:54 GMT 2021 - 8K bytes - Viewed (0) -
src/bytes/reader.go
return } // ReadAt implements the [io.ReaderAt] interface. func (r *Reader) ReadAt(b []byte, off int64) (n int, err error) { // cannot modify state - see io.ReaderAt if off < 0 { return 0, errors.New("bytes.Reader.ReadAt: negative offset") } if off >= int64(len(r.s)) { return 0, io.EOF } n = copy(b, r.s[off:]) if n < len(b) { err = io.EOF } return }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 17:10:31 GMT 2023 - 3.9K bytes - Viewed (0) -
api/go1.12.txt
pkg syscall (freebsd-386), func Mknod(string, uint32, uint64) error pkg syscall (freebsd-386), type Dirent struct, Fileno uint64 pkg syscall (freebsd-386), type Dirent struct, Namlen uint16 pkg syscall (freebsd-386), type Dirent struct, Off int64 pkg syscall (freebsd-386), type Dirent struct, Pad0 uint8 pkg syscall (freebsd-386), type Dirent struct, Pad1 uint16 pkg syscall (freebsd-386), type Stat_t struct, Atim_ext int32
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Wed Jan 02 21:21:53 GMT 2019 - 13.5K bytes - Viewed (0) -
src/archive/zip/reader.go
if _, err := io.ReadFull(r, buf[:4]); err != nil { return err } off := 0 maybeSig := readBuf(buf[:4]) if maybeSig.uint32() != dataDescriptorSignature { // No data descriptor signature. Keep these four // bytes. off += 4 } if _, err := io.ReadFull(r, buf[off:12]); err != nil { return err } b := readBuf(buf[:12]) if b.uint32() != f.CRC32 {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 27.7K bytes - Viewed (0) -
.github/PULL_REQUEST_TEMPLATE
(the latter if this is not a complete fix) to this comment + If referring to a repo other than `golang/go` you can use the `owner/repo#issue_number` syntax: `Fixes golang/tools#1234` + We do not use Signed-off-by lines in Go. Please don't add them. Our Gerrit server & GitHub bots enforce CLA compliance instead.
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Wed Feb 21 02:07:46 GMT 2018 - 1.2K bytes - Viewed (0) -
src/bytes/bytes.go
// TrimLeftFunc treats s as UTF-8-encoded bytes and returns a subslice of s by slicing off // all leading UTF-8-encoded code points c that satisfy f(c). func TrimLeftFunc(s []byte, f func(r rune) bool) []byte { i := indexFunc(s, f, false) if i == -1 { return nil } return s[i:] } // TrimRightFunc returns a subslice of s by slicing off all trailing // UTF-8-encoded code points c that satisfy f(c).
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Feb 19 19:51:15 GMT 2024 - 33.8K bytes - Viewed (0)