- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for SetComment (0.08 seconds)
-
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) }Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Jan 28 04:20:09 GMT 2025 - 14.4K bytes - Click Count (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 }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Jan 28 04:20:09 GMT 2025 - 19.4K bytes - Click Count (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 }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Aug 25 08:14:29 GMT 2025 - 3.1K bytes - Click Count (0)