Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Case (0.12 sec)

  1. src/archive/tar/writer.go

    		}
    	}
    
    	n = len(b0) - len(b)
    	switch {
    	case err == ErrWriteTooLong:
    		return n, errMissData // Not possible; implies bug in validation logic
    	case err != nil:
    		return n, err
    	case sw.logicalRemaining() == 0 && sw.physicalRemaining() > 0:
    		return n, errUnrefData // Not possible; implies bug in validation logic
    	case overwrite:
    		return n, ErrWriteTooLong
    	default:
    		return n, nil
    	}
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  2. src/archive/zip/writer.go

    	// valid UTF-8 string, then we set the UTF-8 bit.
    	//
    	// For the case, where the user explicitly wants to specify the encoding
    	// as UTF-8, they will need to set the flag bit themselves.
    	utf8Valid1, utf8Require1 := detectUTF8(fh.Name)
    	utf8Valid2, utf8Require2 := detectUTF8(fh.Comment)
    	switch {
    	case fh.NonUTF8:
    		fh.Flags &^= 0x800
    	case (utf8Require1 || utf8Require2) && (utf8Valid1 && utf8Valid2):
    		fh.Flags |= 0x800
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top