- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for setComment (0.08 sec)
-
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 Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Jan 28 04:20:09 UTC 2025 - 14.4K bytes - Viewed (0) -
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 Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Jan 28 04:20:09 UTC 2025 - 19.4K bytes - Viewed (0) -
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 Dec 31 11:36:14 UTC 2025 - Last Modified: Mon Aug 25 08:14:29 UTC 2025 - 3.1K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringVisitorModelInterpolator.java
} // Comments org = license.getComments(); val = interpolate(org); if (org != val) { license.setComments(val); } } } private void visit(Developer developer) { if (developer != null) { String org, val; // ContributorRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Feb 25 08:27:34 UTC 2025 - 43.1K bytes - Viewed (0) -
compat/maven-model/src/main/java/org/apache/maven/model/merge/ModelMerger.java
String src = source.getComments(); if (src != null) { if (sourceDominant || target.getComments() == null) { target.setComments(src); target.setLocation("comments", source.getLocation("comments")); } } } protected void mergeMailingList(
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Apr 03 11:21:39 UTC 2025 - 99.2K bytes - Viewed (0)