- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,107 for len (0.04 sec)
-
src/bytes/reader_test.go
if b.String() != s { t.Errorf("got string %q; want %q", b.String(), s) } if r.Len() != 0 { t.Errorf("reader contains %v bytes; want 0", r.Len()) } } } func TestReaderLen(t *testing.T) { const data = "hello world" r := NewReader([]byte(data)) if got, want := r.Len(), 11; got != want { t.Errorf("r.Len(): got %d, want %d", got, want) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 8K bytes - Viewed (0) -
internal/s3select/jstream/decoder_test.go
body = `[{"bio":"bada bing bada boom","id":1,"name":"Charles","falseVal":false}]` ) decoder := NewDecoder(mkReader(body), 1) for mv = range decoder.Stream() { counter++ t.Logf("depth=%d offset=%d len=%d (%v)", mv.Depth, mv.Offset, mv.Length, mv.Value) } if err := decoder.Err(); err != nil { t.Fatalf("decoder error: %s", err) } } func TestDecoderNested(t *testing.T) { var ( counter int
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 6.6K bytes - Viewed (0) -
src/bufio/scan_test.go
s := NewScanner(buf) s.Split(ScanBytes) var i int for i = 0; s.Scan(); i++ { if b := s.Bytes(); len(b) != 1 || b[0] != test[i] { t.Errorf("#%d: %d: expected %q got %q", n, i, test, b) } } if i != len(test) { t.Errorf("#%d: termination expected at %d; got %d", n, len(test), i) } err := s.Err() if err != nil { t.Errorf("#%d: %v", n, err) } } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0) -
cmd/object-api-datatypes_gen.go
s = 3 + 5 + msgp.StringPrefixSize + len(z.Name) + 7 + msgp.StringPrefixSize + len(z.Bucket) + 10 + msgp.StringPrefixSize + len(z.VersionID) + 5 + msgp.StringPrefixSize + len(z.ETag) + 5 + msgp.Int64Size + 11 + msgp.Int64Size + 8 + msgp.TimeSize + 9 + msgp.StringPrefixSize + len(z.UserTags) + 5 + msgp.BoolSize + 18 + z.ReplicationStatus.Msgsize() + 26 + msgp.StringPrefixSize + len(z.ReplicationStatusInternal) + 27 + msgp.StringPrefixSize + len(z.VersionPurgeStatusInternal)...
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 70.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java
} /** * Reads up to len bytes of data from this input stream into an array of bytes. * * @throws IOException if a network error occurs */ public int read( byte[] b, int off, int len ) throws IOException { return readDirect(b, off, len); } public int readDirect( byte[] b, int off, int len ) throws IOException { if( len <= 0 ) { return 0; }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 7.9K bytes - Viewed (0) -
guava/src/com/google/common/hash/AbstractHasher.java
return putBytes(bytes, 0, bytes.length); } @Override @CanIgnoreReturnValue public Hasher putBytes(byte[] bytes, int off, int len) { Preconditions.checkPositionIndexes(off, off + len, bytes.length); for (int i = 0; i < len; i++) { putByte(bytes[off + i]); } return this; } @Override @CanIgnoreReturnValue public Hasher putBytes(ByteBuffer b) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jun 15 20:59:00 UTC 2022 - 3.5K bytes - Viewed (0) -
cmd/xl-storage-format-v2_test.go
for i, ver := range vers { newVers := make([]xlMetaV2ShallowVersion, 0, len(ver)) for _, v := range ver { v.header.Flags += xlFlags(i + 10) newVers = append(newVers, v) } vMod = append(vMod, newVers) } merged := mergeXLV2Versions(i, true, 0, vMod...) if len(merged) == 0 && i < 2 { t.Error("Did not get any results") return } if len(merged) > 0 && i >= 2 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Mar 08 17:50:48 UTC 2024 - 36.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/SocketOutputStream.java
SocketOutputStream( OutputStream out ) { super( out ); } public synchronized void write( byte[] b, int off, int len ) throws IOException { if( len > 0xFFFF ) { throw new IOException( "write too large: " + len ); } else if( off < 4 ) { throw new IOException( "NetBIOS socket output buffer requires 4 bytes available before off" ); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 1.7K bytes - Viewed (0) -
internal/store/queuestore.go
// Del - Deletes an entry from the store. func (store *QueueStore[_]) Del(key Key) error { store.Lock() defer store.Unlock() return store.del(key) } // Len returns the entry count. func (store *QueueStore[_]) Len() int { store.RLock() l := len(store.entries) defer store.RUnlock() return l } // lockless call func (store *QueueStore[_]) del(key Key) error {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.6K bytes - Viewed (0) -
internal/s3select/sql/evaluate.go
if e.Not { matchResult = !matchResult } return FromBool(matchResult), nil } func (e *ListExpr) evalNode(r Record, tableAlias string) (*Value, error) { res := make([]Value, len(e.Elements)) if len(e.Elements) == 1 { // If length 1, treat as single value. return e.Elements[0].evalNode(r, tableAlias) } for i, elt := range e.Elements { v, err := elt.evalNode(r, tableAlias) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 12K bytes - Viewed (0)