Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for WriteBytes (0.09 seconds)

  1. cmd/bucket-metadata_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteBytes(z.PolicyConfigJSON)
    	if err != nil {
    		err = msgp.WrapError(err, "PolicyConfigJSON")
    		return
    	}
    	// write "NotificationConfigXML"
    	err = en.Append(0xb5, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes(z.NotificationConfigXML)
    	if err != nil {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  2. internal/store/queuestore.go

    	// Marshals the item.
    	eventData, err := json.Marshal(item)
    	if err != nil {
    		return err
    	}
    	return store.writeBytes(key, eventData)
    }
    
    // writeBytes - writes bytes to the directory.
    func (store *QueueStore[I]) writeBytes(key Key, b []byte) (err error) {
    	path := filepath.Join(store.directory, key.String())
    
    	if key.Compress {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  3. cmd/xl-storage-format-v2_gen.go

    		err = en.Append(0xa2, 0x49, 0x44)
    		if err != nil {
    			return
    		}
    		err = en.WriteBytes((z.VersionID)[:])
    		if err != nil {
    			err = msgp.WrapError(err, "VersionID")
    			return
    		}
    		// write "DDir"
    		err = en.Append(0xa4, 0x44, 0x44, 0x69, 0x72)
    		if err != nil {
    			return
    		}
    		err = en.WriteBytes((z.DataDir)[:])
    		if err != nil {
    			err = msgp.WrapError(err, "DataDir")
    			return
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 55.8K bytes
    - Click Count (0)
  4. internal/grid/msg_gen.go

    func (z *connectReq) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 4
    	// write "ID"
    	err = en.Append(0x84, 0xa2, 0x49, 0x44)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes((z.ID)[:])
    	if err != nil {
    		err = msgp.WrapError(err, "ID")
    		return
    	}
    	// write "Host"
    	err = en.Append(0xa4, 0x48, 0x6f, 0x73, 0x74)
    	if err != nil {
    		return
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  5. cmd/mrf_gen.go

    		err = msgp.WrapError(err, "VersionID")
    		return
    	}
    	// write "Versions"
    	err = en.Append(0xa8, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes(z.Versions)
    	if err != nil {
    		err = msgp.WrapError(err, "Versions")
    		return
    	}
    	// write "SetIndex"
    	err = en.Append(0xa8, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78)
    	if err != nil {
    		return
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/io/FileUtil.java

         *
         * @param pathname
         *            The path to the file.
         * @param bytes
         *            The byte array to write.
         */
        public static void writeBytes(final String pathname, final byte[] bytes) {
            try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) {
                ChannelUtil.write(fos.getChannel(), ByteBuffer.wrap(bytes));
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  7. cmd/xl-storage-format-v1_gen.go

    	if err != nil {
    		err = msgp.WrapError(err, "Algorithm")
    		return
    	}
    	// write "Hash"
    	err = en.Append(0xa4, 0x48, 0x61, 0x73, 0x68)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes(z.Hash)
    	if err != nil {
    		err = msgp.WrapError(err, "Hash")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z *ChecksumInfo) MarshalMsg(b []byte) (o []byte, err error) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 41.2K bytes
    - Click Count (0)
  8. cmd/metrics-v2.go

    				MetricV2{
    					Description: getMinioProcessIOReadBytesMD(),
    					Value:       float64(io.ReadBytes),
    				})
    		}
    
    		if io.WriteBytes > 0 {
    			metrics = append(metrics,
    				MetricV2{
    					Description: getMinioProcessIOWriteBytesMD(),
    					Value:       float64(io.WriteBytes),
    				})
    		}
    
    		if io.RChar > 0 {
    			metrics = append(metrics,
    				MetricV2{
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 133.6K bytes
    - Click Count (0)
  9. cmd/storage-datatypes_gen.go

    		err = msgp.WrapError(err, "ReplicationState")
    		return
    	}
    	if z.Data == nil { // allownil: if nil
    		err = en.WriteNil()
    		if err != nil {
    			return
    		}
    	} else {
    		err = en.WriteBytes(z.Data)
    		if err != nil {
    			err = msgp.WrapError(err, "Data")
    			return
    		}
    	}
    	err = en.WriteInt(z.NumVersions)
    	if err != nil {
    		err = msgp.WrapError(err, "NumVersions")
    		return
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 151.7K bytes
    - Click Count (0)
Back to Top