MCPcopy Create free account
hub / github.com/JoshuaDoes/tensor-usbdl / NewCommand

Function NewCommand

command.go:15–22  ·  view source on GitHub ↗
(cmd, arg, data, crc []byte)

Source from the content-addressed store, hash-verified

13}
14
15func NewCommand(cmd, arg, data, crc []byte) *Command {
16 return &Command{
17 cmd: cmd,
18 arg: arg,
19 data: data,
20 crc: crc,
21 }
22}
23
24func (c *Command) Bytes() []byte {
25 bytes := crunchio.NewBuffer(string(c.cmd))

Callers 1

command.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected