MCPcopy
hub / github.com/minio/minio-go / getSignedChunkLength

Function getSignedChunkLength

pkg/signer/request-signature-streaming.go:58–65  ·  view source on GitHub ↗

getSignedChunkLength - calculates the length of chunk metadata

(chunkDataSize int64)

Source from the content-addressed store, hash-verified

56
57// getSignedChunkLength - calculates the length of chunk metadata
58func getSignedChunkLength(chunkDataSize int64) int64 {
59 return int64(len(fmt.Sprintf("%x", chunkDataSize))) +
60 chunkSigConstLen +
61 signatureStrLen +
62 crlfLen +
63 chunkDataSize +
64 crlfLen
65}
66
67// getStreamLength - calculates the length of the overall stream (data + metadata)
68func getStreamLength(dataLen, chunkSize int64, trailers http.Header) int64 {

Callers 1

getStreamLengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected