Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Platen (0.21 sec)

  1. src/archive/zip/register.go

    var flateWriterPool sync.Pool
    
    func newFlateWriter(w io.Writer) io.WriteCloser {
    	fw, ok := flateWriterPool.Get().(*flate.Writer)
    	if ok {
    		fw.Reset(w)
    	} else {
    		fw, _ = flate.NewWriter(w, 5)
    	}
    	return &pooledFlateWriter{fw: fw}
    }
    
    type pooledFlateWriter struct {
    	mu sync.Mutex // guards Close and Write
    	fw *flate.Writer
    }
    
    func (w *pooledFlateWriter) Write(p []byte) (n int, err error) {
    	w.mu.Lock()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/archive/zip/writer_test.go

    		if f.method == Deflate {
    			var buf bytes.Buffer
    			w, err := flate.NewWriter(&buf, flate.BestSpeed)
    			if err != nil {
    				t.Fatalf("flate.NewWriter err = %v", err)
    			}
    			_, err = w.Write(f.content)
    			if err != nil {
    				t.Fatalf("flate Write err = %v", err)
    			}
    			err = w.Close()
    			if err != nil {
    				t.Fatalf("flate Writer.Close err = %v", err)
    			}
    			compressedContent = buf.Bytes()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  3. src/archive/tar/common.go

    	paxSize     = "size"
    	paxUid      = "uid"
    	paxGid      = "gid"
    	paxUname    = "uname"
    	paxGname    = "gname"
    	paxMtime    = "mtime"
    	paxAtime    = "atime"
    	paxCtime    = "ctime"   // Removed from later revision of PAX spec, but was valid
    	paxCharset  = "charset" // Currently unused
    	paxComment  = "comment" // Currently unused
    
    	paxSchilyXattr = "SCHILY.xattr."
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  4. src/bytes/buffer.go

    // delim.
    func (b *Buffer) ReadBytes(delim byte) (line []byte, err error) {
    	slice, err := b.readSlice(delim)
    	// return a copy of slice. The buffer's backing array may
    	// be overwritten by later calls.
    	line = append(line, slice...)
    	return line, err
    }
    
    // readSlice is like ReadBytes but returns a reference to internal buffer data.
    func (b *Buffer) readSlice(delim byte) (line []byte, err error) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    		cnt, _ := io.ReadFull(tr, []byte{0})
    		if cnt > 0 && hdr.Typeflag != TypeReg {
    			t.Errorf("ReadFull(...): got %d bytes, want 0 bytes", cnt)
    		}
    	}
    
    	// File is crafted with 16 entries. The later 8 are identical to the first
    	// 8 except that the size is set.
    	if len(hdrs) != 16 {
    		t.Fatalf("len(hdrs): got %d, want %d", len(hdrs), 16)
    	}
    	for i := 0; i < 8; i++ {
    		hdr1, hdr2 := hdrs[i+0], hdrs[i+8]
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  6. api/go1.txt

    pkg compress/flate, method (*ReadError) Error() string
    pkg compress/flate, method (*WriteError) Error() string
    pkg compress/flate, method (*Writer) Close() error
    pkg compress/flate, method (*Writer) Flush() error
    pkg compress/flate, method (*Writer) Write([]uint8) (int, error)
    pkg compress/flate, method (CorruptInputError) Error() string
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
  7. src/cmd/cgo/gcc.go

    		// See golang.org/issue/6563.
    		pos := (*r.Expr).Pos()
    		if x, ok := expr.(*ast.Ident); ok {
    			expr = &ast.Ident{NamePos: pos, Name: x.Name}
    		}
    
    		// Change AST, because some later processing depends on it,
    		// and also because -godefs mode still prints the AST.
    		old := *r.Expr
    		*r.Expr = expr
    
    		// Record source-level edit for cgo output.
    		if !r.Done {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  8. api/go1.16.txt

    pkg archive/zip, type FileHeader struct, ModifiedTime //deprecated
    pkg archive/zip, type FileHeader struct, UncompressedSize //deprecated
    pkg compress/flate, type ReadError //deprecated
    pkg compress/flate, type WriteError //deprecated
    pkg crypto/rc4, method (*Cipher) Reset //deprecated
    pkg crypto/tls, const VersionSSL30 //deprecated
    pkg crypto/tls, method (*Config) BuildNameToCertificate //deprecated
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
  9. src/archive/zip/zip_test.go

    			85, 120, 0, 0, // tag 30805 size 0
    		},
    	}
    	testValidHeader(&h, t)
    }
    
    // Just benchmarking how fast the Zip64 test above is. Not related to
    // our zip performance, since the test above disabled CRC32 and flate.
    func BenchmarkZip64Test(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		testZip64(b, 1<<26)
    	}
    }
    
    func BenchmarkZip64TestSizes(b *testing.B) {
    	for _, size := range []int64{1 << 12, 1 << 20, 1 << 26} {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  10. api/go1.1.txt

    pkg bytes, method (*Buffer) Grow(int)
    pkg bytes, method (*Reader) WriteTo(io.Writer) (int64, error)
    pkg compress/flate, const BestCompression = 9
    pkg compress/flate, const BestSpeed = 1
    pkg compress/flate, const DefaultCompression = -1
    pkg compress/flate, const NoCompression = 0
    pkg compress/gzip, const BestCompression = 9
    pkg compress/gzip, const BestSpeed = 1
    pkg compress/gzip, const DefaultCompression = -1
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
Back to top