- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 163 for EOF (0.02 sec)
-
update-credits.sh
#!/usr/bin/env bash gocredits . >CREDITS echo "All community contributions are licensed under the terms of the Apache 2 license." >>CREDITS echo "----------------------------------------------------------------" >>CREDITS cat >>CREDITS <<EOF Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 11 05:08:38 UTC 2023 - 11.4K bytes - Viewed (0) -
cmd/xl-storage-disk-id-check.go
// that is not io.EOF. func diskHealthCheckOK(ctx context.Context, err error) bool { // Check if context has a disk health check. tracker, ok := ctx.Value(healthDiskCtxKey{}).(*healthDiskCtxValue) if !ok { // No tracker, return return err == nil || errors.Is(err, io.EOF) } if err == nil || errors.Is(err, io.EOF) { tracker.logSuccess() return true }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Apr 25 05:41:04 UTC 2025 - 34.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java
*/ private static byte[] buildCreateBodyNoContexts(byte oplock, byte openFlags, int createAction, long ctime, long atime, long mtime, long chtime, long allocSize, long eof, int attrs, byte[] fileId) { byte[] body = new byte[2 + 2 + 4 + 8 + 8 + 8 + 8 + 8 + 8 + 4 + 4 + 16 + 4 + 4]; int i = 0; SMBUtil.writeInt2(89, body, i); // StructureSize body[i + 2] = oplock;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java
IOException thrown = assertThrows(IOException.class, () -> { packet.readTrailerWireFormat(mockInputStream, buffer, 0); }); assertTrue(thrown.getMessage().contains("unexpected EOF reading netbios retarget session response")); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
internal/hash/checker.go
} // Read satisfies io.Reader func (c Checker) Read(p []byte) (n int, err error) { n, err = c.r.Read(p) if n > 0 { c.h.Write(p[:n]) } if errors.Is(err, io.EOF) { got := c.h.Sum(nil) if !bytes.Equal(got, c.want) { return n, ErrInvalidChecksum } return n, err } return n, err } // Close satisfies io.Closer func (c Checker) Close() error {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Jan 20 14:49:07 UTC 2025 - 1.8K bytes - Viewed (0) -
internal/s3select/jstream/scanner_test.go
} }) } func benchmarkBufioReader(b []byte) { br := bufio.NewReader(bytes.NewReader(b)) loop: for { _, err := br.ReadByte() switch err { case nil: continue loop case io.EOF: break loop default: panic(err) } } } func BenchmarkScanner(b *testing.B) { b.Run("small", func(b *testing.B) { for b.Loop() { benchmarkScanner(smallInput) } })
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3.1K bytes - Viewed (0) -
src/main/java/jcifs/netbios/SessionServicePacket.java
int n = readn(in, buffer, bufferIndex, HEADER_LENGTH); if (n != HEADER_LENGTH) { if (n == -1) { return -1; } throw new IOException("unexpected EOF reading netbios session header"); } return buffer[bufferIndex] & 0xFF; } int type, length; /** * Writes the packet to the specified byte array in wire format. *
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
docs/debugging/inspect/decrypt-v2.go
// Debug corrupted streams. if false { sr.SkipEncrypted(true) return sr.DebugStream(os.Stdout) } extracted := false for { stream, err := sr.NextStream() if err != nil { if err == io.EOF { if extracted { return nil } return errors.New("no data found on stream") } if errors.Is(err, estream.ErrNoKey) { fmt.Println("Skipping", stream.Name, "no private key")Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Feb 17 17:09:42 UTC 2025 - 2.3K bytes - Viewed (0) -
internal/bucket/lifecycle/tag.go
var keyAlreadyParsed, valueAlreadyParsed bool for { // Read tokens from the XML document in a stream. t, err := d.Token() if err != nil { if err == io.EOF { break } return err } if se, ok := t.(xml.StartElement); ok { var s string if err = d.DecodeElement(&s, &se); err != nil { return err } switch se.Name.Local {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
assertEquals(0, raf.read(buf, 0, 0)); } @Test @DisplayName("read(): returns -1 when underlying read reports EOF") void read_returnsMinusOne_onEOF() throws Exception { SmbRandomAccessFile raf = spy(newInstance("r", false, false, false)); // Stub the 3-arg read to signal EOF doReturn(-1).when(raf).read(any(byte[].class), anyInt(), eq(1)); assertEquals(-1, raf.read()); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0)