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

Function decodeChunk

internal/wsrelay/http.go:225–233  ·  view source on GitHub ↗
(payload map[string]any)

Source from the content-addressed store, hash-verified

223}
224
225func decodeChunk(payload map[string]any) []byte {
226 if payload == nil {
227 return nil
228 }
229 if data, ok := payload["data"].(string); ok {
230 return []byte(data)
231 }
232 return nil
233}
234
235func decodeError(payload map[string]any) error {
236 if payload == nil {

Callers 2

NonStreamMethod · 0.85
StreamMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected