MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / Bytes

Method Bytes

internal/logging/request_logger.go:247–253  ·  view source on GitHub ↗

Bytes merges all ordered parts into memory.

()

Source from the content-addressed store, hash-verified

245
246// Bytes merges all ordered parts into memory.
247func (s *FileBodySource) Bytes() ([]byte, error) {
248 var buf bytes.Buffer
249 if errWrite := s.WriteTo(&buf); errWrite != nil {
250 return nil, errWrite
251 }
252 return buf.Bytes(), nil
253}
254
255// Cleanup removes all temp detail parts and their directory.
256func (s *FileBodySource) Cleanup() error {

Callers 15

makeZipFunction · 0.80
CloseMethod · 0.80
FormatMethod · 0.80
JSONBodyFunction · 0.80
NonStreamMethod · 0.80
makeZipFunction · 0.80
encodeRESPArrayFunction · 0.80
GetConfigMethod · 0.80
GetModelsMethod · 0.80
KVGetMethod · 0.80

Calls 1

WriteToMethod · 0.95