- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for readBuf (0.1 sec)
-
src/archive/zip/reader.go
return -1 } return i } } return -1 } type readBuf []byte func (b *readBuf) uint8() uint8 { v := (*b)[0] *b = (*b)[1:] return v } func (b *readBuf) uint16() uint16 { v := binary.LittleEndian.Uint16(*b) *b = (*b)[2:] return v } func (b *readBuf) uint32() uint32 { v := binary.LittleEndian.Uint32(*b) *b = (*b)[4:] return v }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Sat Aug 03 01:05:29 UTC 2024 - 28.1K bytes - Viewed (0) -
src/archive/zip/zip_test.go
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 } want := "abcdefghijklmno"[off : off+int64(size)] got := string(readBuf[:n]) if err != nil || got != want {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.6K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_test.go
const debug = false var readBytes int var wroteBytes int var readBuf bytes.Buffer var wroteBuf bytes.Buffer readHash := crc32.NewIEEE() wroteHash := crc32.NewIEEE() read := io.Writer(readHash) wrote := io.Writer(wroteHash) if debug { read = io.MultiWriter(read, &readBuf) wrote = io.MultiWriter(wrote, &wroteBuf) } debugln := func(args ...interface{}) { if debug {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 26.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 10.9K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
try { return input.readLine(); } catch (IOException e) { throw new IllegalStateException(e); } } @Override public String readUTF() { try { return input.readUTF(); } catch (IOException e) { throw new IllegalStateException(e); } } } /** Returns a new {@link ByteArrayDataOutput} instance with a default size. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 29.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Wed Jan 08 12:01:33 UTC 2020 - 18.5K bytes - Viewed (0)