Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for SetComment (0.08 sec)

  1. src/archive/zip/writer_test.go

    	for _, test := range tests {
    		// write a zip file
    		buf := new(bytes.Buffer)
    		w := NewWriter(buf)
    		if err := w.SetComment(test.comment); err != nil {
    			if test.ok {
    				t.Fatalf("SetComment: unexpected error %v", err)
    			}
    			continue
    		} else {
    			if !test.ok {
    				t.Fatalf("SetComment: unexpected success, want error")
    			}
    		}
    
    		if err := w.Close(); test.ok == (err != nil) {
    			t.Fatal(err)
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocCommentBuilder.java

            this.javadocConverter = javadocConverter;
            this.listener = listener;
        }
    
        /**
         * Builds the class comment for the given class.
         */
        void build(ClassDoc classDoc) {
            classDoc.setComment(javadocConverter.parse(classDoc.getClassMetaData(), listener).getDocbook());
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  3. src/archive/zip/writer.go

    // Calling Flush is not normally necessary; calling Close is sufficient.
    func (w *Writer) Flush() error {
    	return w.cw.w.(*bufio.Writer).Flush()
    }
    
    // SetComment sets the end-of-central-directory comment field.
    // It can only be called before [Writer.Close].
    func (w *Writer) SetComment(comment string) error {
    	if len(comment) > uint16max {
    		return errors.New("zip: Writer.Comment too long")
    	}
    	w.comment = comment
    	return nil
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. api/go1.10.txt

    pkg archive/tar, type Format int
    pkg archive/tar, type Header struct, Format Format
    pkg archive/tar, type Header struct, PAXRecords map[string]string
    pkg archive/zip, method (*Writer) SetComment(string) error
    pkg archive/zip, type FileHeader struct, Modified time.Time
    pkg archive/zip, type FileHeader struct, NonUTF8 bool
    pkg bufio, method (*Reader) Size() int
    pkg bufio, method (*Writer) Size() int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Feb 06 05:00:01 UTC 2018
    - 30.1K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/model/DslElementDoc.java

    package gradlebuild.docs.dsl.docbook.model;
    
    import org.w3c.dom.Element;
    
    import java.util.List;
    
    public interface DslElementDoc {
        String getId();
    
        Element getDescription();
    
        List<Element> getComment();
    
        boolean isDeprecated();
    
        boolean isIncubating();
    
        boolean isReplaced();
    
        String getReplacement();
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 949 bytes
    - Viewed (0)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/model/MethodDoc.groovy

        @Override
        String getReplacement() {
            return metaData.replacement
        }
    
        Element getDescription() {
            return comment.find { it.nodeName == 'para' }
        }
    
        List<Element> getComment() {
            return comment
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/model/BlockDoc.groovy

            return multiValued
        }
    
        TypeMetaData getType() {
            return type
        }
    
        Element getDescription() {
            return blockMethod.description;
        }
    
        List<Element> getComment() {
            return blockMethod.comment
        }
    
        boolean isDeprecated() {
            return blockProperty.deprecated || blockMethod.deprecated
        }
    
        boolean isIncubating() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/model/PropertyDoc.groovy

        @Override
        String getReplacement() {
            return metaData.replacement
        }
    
        Element getDescription() {
            return comment.find { it.nodeName == 'para' }
        }
    
        List<Element> getComment() {
            return comment
        }
    
        List<ExtraAttributeDoc> getAdditionalValues() {
            return additionalValues
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 3.1K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/MethodDetailRenderer.java

            }
            title.appendChild(document.createTextNode(")"));
    
            warningsRenderer.renderTo(methodDoc, "method", section);
    
            for (Element element : methodDoc.getComment()) {
                section.appendChild(document.importNode(element, true));
            }
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.7K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/BlockDetailRenderer.java

            title.appendChild(document.createTextNode(" { }"));
    
            warningsRenderer.renderTo(blockDoc, "script block", section);
    
            for (Element element : blockDoc.getComment()) {
                section.appendChild(document.importNode(element, true));
            }
    
            Element segmentedlist = document.createElement("segmentedlist");
            section.appendChild(segmentedlist);
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 3.7K bytes
    - Viewed (0)
Back to top