Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for StructuralError (0.21 sec)

  1. src/compress/bzip2/bzip2.go

    // The source code to pyflate was useful for debugging:
    // http://www.paul.sladen.org/projects/pyflate
    
    // A StructuralError is returned when the bzip2 data is found to be
    // syntactically invalid.
    type StructuralError string
    
    func (s StructuralError) Error() string {
    	return "bzip2 data invalid: " + string(s)
    }
    
    // A reader decompresses bzip2 compressed data.
    type reader struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. src/encoding/asn1/marshal.go

    	if !ok || matchAny {
    		return nil, StructuralError{fmt.Sprintf("unknown Go type: %v", v.Type())}
    	}
    
    	if params.timeType != 0 && tag != TagUTCTime {
    		return nil, StructuralError{"explicit time type given to non-time member"}
    	}
    
    	if params.stringType != 0 && tag != TagPrintableString {
    		return nil, StructuralError{"explicit string type given to non-string member"}
    	}
    
    	switch tag {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. src/compress/bzip2/huffman.go

    		// is zero or one. Both cases are invalid because a zero length
    		// tree cannot encode anything and a length-1 tree can only
    		// encode EOF and so is superfluous. We reject both.
    		if len(codes) < 2 {
    			return 0, StructuralError("empty Huffman tree")
    		}
    
    		// In this case the recursion doesn't always reduce the length
    		// of codes so we need to ensure termination via another
    		// mechanism.
    		if level == 31 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:44:37 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/nonstructuralschema/nonstructuralschema_controller.go

    			klog.Errorf("failed to convert CRD validation to internal version: %v", err)
    			continue
    		}
    		s, err := schema.NewStructural(internalSchema.OpenAPIV3Schema)
    		if err != nil {
    			cond.Reason = "StructuralError"
    			cond.Message = fmt.Sprintf("failed to check validation schema for version %s: %v", v.Name, err)
    			return cond
    		}
    
    		pth := field.NewPath("spec", "versions").Index(i).Child("schema", "openAPIV3Schema")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. internal/s3select/select.go

    		s3Select.recordReader, err = csv.NewReader(s3Select.progressReader, &s3Select.Input.CSVArgs)
    		if err != nil {
    			// Close all reader resources opened so far.
    			s3Select.progressReader.Close()
    
    			var stErr bzip2.StructuralError
    			if errors.As(err, &stErr) {
    				return errInvalidCompression(err, s3Select.Input.CompressionType)
    			}
    			// Test these compressor errors
    			errs := []error{
    				gzip.ErrHeader, gzip.ErrChecksum,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 21K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    	},
    	"cmp": {
    		{"Compare", Func, 21},
    		{"Less", Func, 21},
    		{"Or", Func, 22},
    		{"Ordered", Type, 21},
    	},
    	"compress/bzip2": {
    		{"(StructuralError).Error", Method, 0},
    		{"NewReader", Func, 0},
    		{"StructuralError", Type, 0},
    	},
    	"compress/flate": {
    		{"(*ReadError).Error", Method, 0},
    		{"(*WriteError).Error", Method, 0},
    		{"(*Writer).Close", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top