Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 958 for Bytes (0.04 sec)

  1. istioctl/pkg/util/proto/messageslice.go

    func (pSlice MessageSlice) MarshalJSON() ([]byte, error) {
    	buffer := bytes.NewBufferString("[")
    	sliceLength := len(pSlice)
    	for index, msg := range pSlice {
    		b, err := protomarshal.Marshal(msg)
    		if err != nil {
    			return nil, err
    		}
    		buffer.Write(b)
    		if index < sliceLength-1 {
    			buffer.WriteString(",")
    		}
    	}
    	buffer.WriteString("]")
    	return buffer.Bytes(), nil
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 19 21:53:59 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/request-files.md

    📁 🔜 📂 "ðŸ“Ļ ðŸ’―".
    
    ðŸšĨ 👆 ðŸ“Ģ 🆎 👆 *➡ 🛠ïļ ðŸ”Ē* ðŸ”Ē `bytes`, **FastAPI** 🔜 ✍ 📁 👆 &amp; 👆 🔜 ðŸ“Ļ 🎚 `bytes`.
    
    ✔ïļ ðŸĪŊ 👈 👉 ⛓ 👈 🎂 🎚 🔜 🏊 ðŸ’ū. 👉 🔜 👷 👍 ðŸĪŠ 📁.
    
    ✋ïļ ðŸ“Ī 📚 💞 ❔ 👆 💊 💰 ⚩ïļâžĄïļ ⚙ïļ `UploadFile`.
    
    ## 📁 ðŸ”Ē âŪïļ `UploadFile`
    
    🔎 📁 ðŸ”Ē âŪïļ 🆎 `UploadFile`:
    
    ```Python hl_lines="12"
    {!../../docs_src/request_files/tutorial001.py!}
    ```
    
    ⚙ïļ `UploadFile` ✔ïļ 📚 📈 ðŸĪ­ `bytes`:
    
    * 👆 ðŸšŦ ✔ïļ ⚙ïļ `File()` ðŸ”Ē ðŸ’ē ðŸ”Ē.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. internal/crypto/key.go

    		return etag
    	}
    	var buffer bytes.Buffer
    	mac := hmac.New(sha256.New, key[:])
    	mac.Write([]byte("SSE-etag"))
    	if _, err := sio.Encrypt(&buffer, bytes.NewReader(etag), sio.Config{Key: mac.Sum(nil), CipherSuites: fips.DARECiphers()}); err != nil {
    		logger.CriticalIf(context.Background(), errors.New("Unable to encrypt ETag using object key"))
    	}
    	return buffer.Bytes()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 19 20:28:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. docs/debugging/xl-meta/main.go

    							}
    
    							var buf bytes.Buffer
    							if err := rs.Join(&buf, splitFilled, m.size); err == nil {
    								m.filled = buf.Bytes()
    							}
    							buf = bytes.Buffer{}
    							if err := rs.Join(&buf, splitData, m.size); err == nil {
    								m.mapped = buf.Bytes()
    							}
    							for i, v := range m.filled {
    								if v == 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  5. cmd/mrf_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalPartialOperation(t *testing.T) {
    	v := PartialOperation{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. cmd/tier_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalTierConfigMgr(t *testing.T) {
    	v := TierConfigMgr{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  7. cmd/metacache-set_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshallistPathOptions(t *testing.T) {
    	v := listPathOptions{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. cmd/metacache-walk_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalWalkDirOptions(t *testing.T) {
    	v := WalkDirOptions{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. cmd/site-replication-utils_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalSiteResyncStatus(t *testing.T) {
    	v := SiteResyncStatus{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Nov 14 15:16:40 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/compare/comparator_test.go

    package compare
    
    import (
    	"bytes"
    	"os"
    	"testing"
    )
    
    // TestComparatorMatchingConfigs tests the scenario where Istiod and Envoy configurations match
    func TestComparatorMatchingSameConfigs(t *testing.T) {
    	cfg, err := os.ReadFile("testdata/configdump.json")
    	if err != nil {
    		t.Fatalf("Failed to read test data: %v", err)
    	}
    
    	var outputBuffer bytes.Buffer
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Mar 12 10:02:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top