| 48 | var Buffers *buf.BufferPool |
| 49 | |
| 50 | type PutCacheRequest struct { |
| 51 | CacheKey string `json:"key"` |
| 52 | Data []byte `json:"data"` |
| 53 | VolName string `json:"volName"` |
| 54 | } |
| 55 | |
| 56 | func (req *PutCacheRequest) Marshal() (result []byte, err error) { |
| 57 | buff := bytespool.NewBuffer(4 + len(req.CacheKey) + 4 + len(req.Data) + 4 + len(req.VolName)) |
nothing calls this directly
no outgoing calls
no test coverage detected