- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for discord (0.21 sec)
-
src/bytes/reader_test.go
n int64 err error } type justReader struct { io.Reader } type justWriter struct { io.Writer } discard := justWriter{io.Discard} // hide ReadFrom var with, withOut nErr with.n, with.err = io.Copy(discard, NewReader(nil)) withOut.n, withOut.err = io.Copy(discard, justReader{NewReader(nil)}) if with != withOut { t.Errorf("behavior differs: with = %#v; without: %#v", with, withOut) } }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Dec 13 18:45:54 GMT 2021 - 8K bytes - Viewed (0) -
api/go1.20.txt
pkg syscall (freebsd-riscv64), const TOSTOP = 4194304 #53466 pkg syscall (freebsd-riscv64), const TOSTOP ideal-int #53466 pkg syscall (freebsd-riscv64), const VDISCARD = 15 #53466 pkg syscall (freebsd-riscv64), const VDISCARD ideal-int #53466 pkg syscall (freebsd-riscv64), const VDSUSP = 11 #53466 pkg syscall (freebsd-riscv64), const VDSUSP ideal-int #53466 pkg syscall (freebsd-riscv64), const VEOF = 0 #53466
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Fri Feb 17 21:23:32 GMT 2023 - 602.6K bytes - Viewed (0) -
src/cmd/asm/internal/asm/parse.go
p.symDefRef(w, word, operands) } return p.errorCount == 0 } // nextToken returns the next non-build-comment token from the lexer. // It reports misplaced //go:build comments but otherwise discards them. func (p *Parser) nextToken() lex.ScanToken { for { tok := p.lex.Next() if tok == lex.BuildComment { if p.sawCode { p.errorf("misplaced //go:build comment") } continue }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Feb 21 14:34:57 GMT 2024 - 36.9K bytes - Viewed (0) -
doc/go_spec.html
<code>-</code>, <code>*</code>, and <code><<</code> are computed modulo 2<sup><i>n</i></sup>, where <i>n</i> is the bit width of the unsigned integer's type. Loosely speaking, these unsigned integer operations discard high bits upon overflow, and programs may rely on "wrap around". </p> <p> For signed integers, the operations <code>+</code>, <code>-</code>, <code>*</code>, <code>/</code>, and <code><<</code> may legally
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu May 02 22:43:51 GMT 2024 - 279.6K bytes - Viewed (0) -
api/go1.1.txt
pkg syscall (darwin-386), const TIOCUCNTL = 2147775590 pkg syscall (darwin-386), const TOSTOP = 4194304 pkg syscall (darwin-386), const TOSTOP ideal-int pkg syscall (darwin-386), const VDISCARD = 15 pkg syscall (darwin-386), const VDISCARD ideal-int pkg syscall (darwin-386), const VDSUSP = 11 pkg syscall (darwin-386), const VDSUSP ideal-int pkg syscall (darwin-386), const VEOF = 0 pkg syscall (darwin-386), const VEOF ideal-int
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Mar 31 20:37:15 GMT 2022 - 2.6M bytes - Viewed (1) -
src/bufio/bufio.go
err = ErrBufferFull } } return b.buf[b.r : b.r+n], err } // Discard skips the next n bytes, returning the number of bytes discarded. // // If Discard skips fewer than n bytes, it also returns an error. // If 0 <= n <= b.Buffered(), Discard is guaranteed to succeed without // reading from the underlying io.Reader. func (b *Reader) Discard(n int) (discarded int, err error) { if n < 0 { return 0, ErrNegativeCount }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Oct 12 14:39:08 GMT 2023 - 21.8K bytes - Viewed (0) -
src/archive/tar/reader.go
// one or more "header files" until it finds a "normal file". format := FormatUSTAR | FormatPAX | FormatGNU for { // Discard the remainder of the file and any padding. if err := discard(tr.r, tr.curr.physicalRemaining()); err != nil { return nil, err } if _, err := tryReadFull(tr.r, tr.blk[:tr.pad]); err != nil { return nil, err } tr.pad = 0
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 08 01:59:14 GMT 2024 - 26.8K bytes - Viewed (0) -
src/archive/tar/tar_test.go
for _, v := range vectors { b.Run(v.label, func(b *testing.B) { b.ReportAllocs() for i := 0; i < b.N; i++ { // Writing to io.Discard because we want to // test purely the writer code and not bring in disk performance into this. tw := NewWriter(io.Discard) for _, file := range v.files { if err := tw.WriteHeader(file.hdr); err != nil { b.Errorf("unexpected WriteHeader error: %v", err)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 24K bytes - Viewed (0) -
doc/go_mem.html
</p> <p> Not allowing a single read to observe multiple values means not reloading local variables from shared memory. For example, a compiler must not discard <code>i</code> and reload it a second time from <code>*p</code> in this program: </p> <pre> i := *p if i < 0 || i >= len(funcs) { panic("invalid function index") } ... complex code ...
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Mon Mar 04 15:54:42 GMT 2024 - 26.6K bytes - Viewed (0) -
src/archive/tar/writer_test.go
}, { name: "PAX header too long", h: &Header{PAXRecords: map[string]string{"GOLANG.x": strings.Repeat("a", maxSpecialFileSize)}}, }} { w := NewWriter(io.Discard) if err := w.WriteHeader(test.h); err != ErrFieldTooLong { t.Errorf("%v: w.WriteHeader() = %v, want ErrFieldTooLong", test.name, err) } } }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Feb 27 16:39:23 GMT 2024 - 38.7K bytes - Viewed (0)