- Sort Score
- Result 10 results
- Languages All
Results 1331 - 1340 of 1,541 for bytes (0.03 sec)
-
src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java
assertNull(BigDecimalConversionUtil.toBigDecimal(null)); assertSame(ZERO, BigDecimalConversionUtil.toBigDecimal(ZERO)); assertEquals(new BigDecimal("1"), BigDecimalConversionUtil.toBigDecimal(Byte.valueOf((byte) 1))); assertEquals(new BigDecimal("10"), BigDecimalConversionUtil.toBigDecimal(Short.valueOf((short) 10))); assertEquals(new BigDecimal("100"), BigDecimalConversionUtil.toBigDecimal(Integer.valueOf(100)));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 4.8K bytes - Viewed (0) -
internal/s3select/sql/funceval.go
// needs to be trimmed. res, ok := strToInt(strings.TrimSpace(x)) if !ok { return 0, errCastFailure("could not parse as int") } return res, nil case []byte: // Parse as number, truncate floating point if // needed. // String might contain trimming spaces, which // needs to be trimmed. res, ok := strToInt(strings.TrimSpace(string(x))) if !ok {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 13.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java
private int status = Constants.OK_STATUS; private final Map<String, Object> metaDataMap = new LinkedHashMap<>(); private final Set<RequestData> childUrlSet = new LinkedHashSet<>(); private byte[] responseBodyBytes; private File responseBodyFile; private boolean isTemporaryFile; private boolean noFollow = false; public int getHttpStatusCode() { return httpStatusCode;
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:40:57 UTC 2024 - 5.8K bytes - Viewed (0) -
soft_delete.go
if !n.Valid { return nil, nil } return n.Time, nil } func (n DeletedAt) MarshalJSON() ([]byte, error) { if n.Valid { return json.Marshal(n.Time) } return json.Marshal(nil) } func (n *DeletedAt) UnmarshalJSON(b []byte) error { if string(b) == "null" { n.Valid = false return nil } err := json.Unmarshal(b, &n.Time) if err == nil { n.Valid = true
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Feb 01 06:40:55 UTC 2023 - 4.5K bytes - Viewed (1) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformerTest.java
} public void test_name() { assertEquals("htmlTransformer", htmlTransformer.getName()); } public void test_transform() { final byte[] data = new String("xyz").getBytes(); final ResponseData responseData = new ResponseData(); responseData.setUrl("http://hoge/"); responseData.setResponseBody(data);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 13.8K bytes - Viewed (0) -
src/arena/arena_test.go
// license that can be found in the LICENSE file. //go:build goexperiment.arenas package arena_test import ( "arena" "testing" ) type T1 struct { n int } type T2 [1 << 20]byte // 1MiB func TestSmoke(t *testing.T) { a := arena.NewArena() defer a.Free() tt := arena.New[T1](a) tt.n = 1 ts := arena.MakeSlice[T1](a, 99, 100) if len(ts) != 99 {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 12 20:23:36 UTC 2022 - 742 bytes - Viewed (0) -
internal/config/bool-flag.go
if bf { return "on" } return "off" } // MarshalJSON - converts BoolFlag into JSON data. func (bf BoolFlag) MarshalJSON() ([]byte, error) { return json.Marshal(bf.String()) } // UnmarshalJSON - parses given data into BoolFlag. func (bf *BoolFlag) UnmarshalJSON(data []byte) (err error) { var s string if err = json.Unmarshal(data, &s); err == nil { b := BoolFlag(true) if s == "" {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 07 15:10:40 UTC 2022 - 2.3K bytes - Viewed (0) -
src/archive/zip/register.go
fw, _ = flate.NewWriter(w, 5) } return &pooledFlateWriter{fw: fw} } type pooledFlateWriter struct { mu sync.Mutex // guards Close and Write fw *flate.Writer } func (w *pooledFlateWriter) Write(p []byte) (n int, err error) { w.mu.Lock() defer w.mu.Unlock() if w.fw == nil { return 0, errors.New("Write after Close") } return w.fw.Write(p) } func (w *pooledFlateWriter) Close() error { w.mu.Lock()
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Oct 13 18:36:46 UTC 2023 - 3.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/MathTesting.java
return x.negate(); } }; /* * This list contains values that attempt to provoke overflow in integer operations. It contains * positive values on or near 2^N for N near multiples of 8 (near byte boundaries). */ static final ImmutableSet<Integer> POSITIVE_INTEGER_CANDIDATES; static final Iterable<Integer> NEGATIVE_INTEGER_CANDIDATES; static final Iterable<Integer> NONZERO_INTEGER_CANDIDATES;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 11.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/MathTesting.java
return x.negate(); } }; /* * This list contains values that attempt to provoke overflow in integer operations. It contains * positive values on or near 2^N for N near multiples of 8 (near byte boundaries). */ static final ImmutableSet<Integer> POSITIVE_INTEGER_CANDIDATES; static final Iterable<Integer> NEGATIVE_INTEGER_CANDIDATES; static final Iterable<Integer> NONZERO_INTEGER_CANDIDATES;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 11.2K bytes - Viewed (0)