- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for parseS3ChunkExtension (0.1 seconds)
-
cmd/streaming-signature-v4.go
} // Constant s3 chunk encoding signature. const s3ChunkSignatureStr = ";chunk-signature=" // parses3ChunkExtension removes any s3 specific chunk-extension from buf. // For example, // // "10000;chunk-signature=..." => "10000", "chunk-signature=..." func parseS3ChunkExtension(buf []byte) ([]byte, []byte) { buf = trimTrailingWhitespace(buf) semi := bytes.Index(buf, []byte(s3ChunkSignatureStr))
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 18.2K bytes - Click Count (0) -
cmd/streaming-signature-v4_test.go
}, } // Validate chunk extension removal. for i, tt := range tests { // Extract chunk size and chunk signature after parsing a standard chunk-extension format. hexChunkSize, hexChunkSignature := parseS3ChunkExtension(tt.buf) if !bytes.Equal(hexChunkSize, tt.chunkSize) { t.Errorf("Test %d: Expected %s, got %s", i+1, string(tt.chunkSize), string(hexChunkSize)) } if !bytes.Equal(hexChunkSignature, tt.chunkSign) {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.7K bytes - Click Count (0)