- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for tw (0.02 sec)
-
src/archive/tar/writer.go
// will implicitly flush out the file's padding. func (tw *Writer) Flush() error { if tw.err != nil { return tw.err } if nb := tw.curr.logicalRemaining(); nb > 0 { return fmt.Errorf("archive/tar: missed writing %d bytes", nb) } if _, tw.err = tw.w.Write(zeroBlock[:tw.pad]); tw.err != nil { return tw.err } tw.pad = 0 return nil }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Feb 03 16:38:43 UTC 2025 - 19.7K bytes - Viewed (0) -
src/archive/tar/writer_test.go
t.Run("NegativeSize", func(t *testing.T) { tw := NewWriter(new(bytes.Buffer)) hdr := &Header{Name: "small.txt", Size: -1} if err := tw.WriteHeader(hdr); err == nil { t.Fatalf("WriteHeader() = nil, want non-nil error") } }) t.Run("BeforeHeader", func(t *testing.T) { tw := NewWriter(new(bytes.Buffer)) if _, err := tw.Write([]byte("Kilts")); err != ErrWriteTooLong {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Feb 03 16:38:43 UTC 2025 - 39.8K bytes - Viewed (0) -
src/archive/tar/tar_test.go
} if _, err := tw.Write(data); err != nil { t.Fatalf("tw.Write: %v", err) } if err := tw.Close(); err != nil { t.Fatalf("tw.Close: %v", err) } // Read it back. tr := NewReader(&b) rHdr, err := tr.Next() if err != nil { t.Fatalf("tr.Next: %v", err) } if !reflect.DeepEqual(rHdr, hdr) { t.Errorf("Header mismatch.\n got %+v\nwant %+v", rHdr, hdr) } rData, err := io.ReadAll(tr)
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 23.9K bytes - Viewed (0) -
src/main/resources/fess_indices/_aws/fess/doc.json
"mapping": { "type": "text", "analyzer": "simplified_chinese_analyzer" } } }, { "lang_zh-tw": { "match": "*_zh-tw", "mapping": { "type": "text", "analyzer": "empty_analyzer" } } } ], "properties": { "anchor": {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 15 11:50:35 UTC 2023 - 11.7K bytes - Viewed (0) -
src/main/resources/fess_indices/fess.json
"keywords_path": "${fess.dictionary.path}th/protwords.txt" }, "traditional_chinese_stop": { "type": "stop", "stopwords_path": "${fess.dictionary.path}zh-tw/stopwords.txt" }, "turkish_stop": { "type": "stop", "stopwords_path": "${fess.dictionary.path}tr/stopwords.txt" }, "turkish_lowercase": {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Fri Jun 06 14:17:42 UTC 2025 - 39.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java
assertArrays(new String[] { "zh-tw" }, fessConfig.normalizeQueryLanguages(new String[] { "zh_TW" })); } public void test_getQueryLocaleFromName() { FessProp.propMap.clear(); FessConfig fessConfig = new FessConfig.SimpleImpl() { @Override public String getQueryLanguageMapping() { return "ja=ja\nzh_cn=zh-cn\nzh_TW=zh-tw\nzh=zh-cn"; } };
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 13K bytes - Viewed (0) -
src/main/resources/fess_indices/fess/doc.json
"mapping": { "type": "text", "analyzer": "simplified_chinese_analyzer" } } }, { "lang_zh-tw": { "match": "*_zh-tw", "mapping": { "type": "text", "analyzer": "traditional_chinese_analyzer" } } } ], "properties": { "anchor": {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 15 11:50:35 UTC 2023 - 11.8K bytes - Viewed (0) -
src/main/resources/fess_indices/_cloud/fess/doc.json
"mapping": { "type": "text", "analyzer": "simplified_chinese_analyzer" } } }, { "lang_zh-tw": { "match": "*_zh-tw", "mapping": { "type": "text", "analyzer": "empty_analyzer" } } } ], "properties": { "anchor": {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 15 11:50:35 UTC 2023 - 11.7K bytes - Viewed (0) -
src/bufio/bufio_test.go
const BufSize = 8 { tw := &teststringwriter{} b := NewWriterSize(tw, BufSize) b.WriteString("1234") tw.check(t, "", "") b.WriteString("56789012") // longer than BufSize tw.check(t, "12345678", "") // but not enough (after filling the partially-filled buffer) b.Flush() tw.check(t, "123456789012", "") } { tw := &teststringwriter{} b := NewWriterSize(tw, BufSize)Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Feb 07 01:08:54 UTC 2025 - 51.6K bytes - Viewed (0) -
src/archive/tar/reader_test.go
for _, path := range []string{ "../foo", "/foo", "a/b/../../../c", } { var buf bytes.Buffer tw := NewWriter(&buf) tw.WriteHeader(&Header{ Name: path, }) const securePath = "secure" tw.WriteHeader(&Header{ Name: securePath, }) tw.Close() tr := NewReader(&buf) h, err := tr.Next() if err != ErrInsecurePath {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0)