- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for zeroBlock (0.06 seconds)
-
src/archive/tar/reader.go
return nil, nil, err // EOF is okay here; exactly 0 bytes read } if bytes.Equal(tr.blk[:], zeroBlock[:]) { if _, err := io.ReadFull(tr.r, tr.blk[:]); err != nil { return nil, nil, err // EOF is okay here; exactly 1 block of zeros read } if bytes.Equal(tr.blk[:], zeroBlock[:]) { return nil, nil, io.EOF // normal EOF; exactly 2 block of zeros read }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Oct 07 19:46:36 GMT 2025 - 26.9K bytes - Click Count (0) -
src/archive/tar/reader_test.go
t.Errorf("test %d, Header.Size = %d, want %d", i, hdr.Size, v.wantSize) } } } func TestReadGNUSparsePAXHeaders(t *testing.T) { padInput := func(s string) string { return s + string(zeroBlock[:blockPadding(int64(len(s)))]) } vectors := []struct { inputData string inputHdrs map[string]string wantMap sparseDatas wantSize int64 wantName string wantErr error
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Dec 30 15:28:53 GMT 2025 - 47.5K bytes - Click Count (0)