Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 96 for Msgsize (0.1 sec)

  1. internal/grid/connection.go

    	if payload != nil {
    		if sz := payload.Msgsize(); cap(msg.Payload) < sz {
    			PutByteBuffer(msg.Payload)
    			msg.Payload = GetByteBufferCap(sz)
    		}
    		var err error
    		msg.Payload, err = payload.MarshalMsg(msg.Payload[:0])
    		msg.Op = payload.Op()
    		if err != nil {
    			return err
    		}
    	}
    	defer PutByteBuffer(msg.Payload)
    	dst := GetByteBufferCap(msg.Msgsize())
    	dst, err := msg.MarshalMsg(dst)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  2. cmd/background-newdisks-heal-ops_gen.go

    			bts, err = msgp.Skip(bts)
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z *healingTracker) Msgsize() (s int) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 15:42:49 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  3. cmd/data-usage-cache.go

    				err = msgp.WrapError(err)
    				return
    			}
    			(*z)[zb0003] = struct{}{}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z dataUsageHashMap) Msgsize() (s int) {
    	s = msgp.ArrayHeaderSize
    	for zb0004 := range z {
    		s += msgp.StringPrefixSize + len(zb0004)
    	}
    	return
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTransportImpl.java

            int maximumBufferSize = getContext().getConfig().getMaximumBufferSize();
            int msgSize = nextCommand != 0 ? nextCommand : size;
            if ( msgSize > maximumBufferSize ) {
                throw new IOException(String.format("Message size %d exceeds maxiumum buffer size %d", msgSize, maximumBufferSize));
            }
    
            ServerMessageBlock2Response cur = (ServerMessageBlock2Response) response;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  5. cmd/bucket-metadata.go

    // Save config to supplied ObjectLayer api.
    func (b *BucketMetadata) Save(ctx context.Context, api ObjectLayer) error {
    	if err := b.parseAllConfigs(ctx, api); err != nil {
    		return err
    	}
    
    	data := make([]byte, 4, b.Msgsize()+4)
    
    	// Initialize the header.
    	binary.LittleEndian.PutUint16(data[0:2], bucketMetadataFormat)
    	binary.LittleEndian.PutUint16(data[2:4], bucketMetadataVersion)
    
    	// Marshal the bucket metadata
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. cmd/tier.go

    }
    
    // Bytes returns msgpack encoded config with format and version headers.
    func (config *TierConfigMgr) Bytes() ([]byte, error) {
    	config.RLock()
    	defer config.RUnlock()
    	data := make([]byte, 4, config.Msgsize()+4)
    
    	// Initialize the header.
    	binary.LittleEndian.PutUint16(data[0:2], tierConfigFormat)
    	binary.LittleEndian.PutUint16(data[2:4], tierConfigVersion)
    
    	// Marshal the tier config
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. internal/grid/muxclient.go

    	}
    	return m.sendLocked(msg)
    }
    
    // sendLocked the message. msg.Seq and msg.MuxID will be set.
    // m.respMu must be held.
    func (m *muxClient) sendLocked(msg message) error {
    	dst := GetByteBufferCap(msg.Msgsize())
    	msg.Seq = m.SendSeq
    	msg.MuxID = m.MuxID
    	msg.Flags |= m.BaseFlags
    	if debugPrint {
    		fmt.Println("Client sending", &msg, "to", m.parent.Remote)
    	}
    	m.SendSeq++
    
    	dst, err := msg.MarshalMsg(dst)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-rebalance.go

    	return nil
    }
    
    func (r *rebalanceMeta) saveWithOpts(ctx context.Context, store objectIO, opts ObjectOptions) error {
    	if r == nil {
    		return nil
    	}
    
    	data := make([]byte, 4, r.Msgsize()+4)
    
    	// Initialize the header.
    	binary.LittleEndian.PutUint16(data[0:2], rebalMetaFmt)
    	binary.LittleEndian.PutUint16(data[2:4], rebalMetaVer)
    
    	buf, err := r.MarshalMsg(data)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  9. cmd/data-scanner.go

    					cycleInfo.cycleCompleted = cycleInfo.cycleCompleted[len(cycleInfo.cycleCompleted)-dataUsageUpdateDirCycles:]
    				}
    				globalScannerMetrics.setCycle(&cycleInfo)
    				tmp := make([]byte, 8, 8+cycleInfo.Msgsize())
    				// Cycle for backward compat.
    				binary.LittleEndian.PutUint64(tmp, cycleInfo.next)
    				tmp, _ = cycleInfo.MarshalMsg(tmp)
    				err = saveConfig(ctx, objAPI, dataUsageBloomNamePath, tmp)
    				if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  10. cmd/batch-handlers.go

    		}
    		if serverDebugLog {
    			console.Debugf("%s: persisting info on drive: threshold:%s, %s:%#v\n", jobTyp, now.Sub(ri.LastUpdate), jobTyp, ri)
    		}
    		ri.LastUpdate = now
    
    		data := make([]byte, 4, ri.Msgsize()+4)
    
    		// Initialize the header.
    		binary.LittleEndian.PutUint16(data[0:2], format)
    		binary.LittleEndian.PutUint16(data[2:4], version)
    
    		buf, err := ri.MarshalMsg(data)
    		ri.mu.Unlock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
Back to top