MCPcopy Index your code
hub / github.com/EngoEngine/engo / Write

Method Write

common/audio.go:33–41  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

31}
32
33func (l *stepPlayer) Write(b []byte) (int, error) {
34 if l.ThrowWriteError {
35 return 0, errors.New("write error")
36 }
37 l.stepStart <- b
38 <-l.stepDone
39
40 return len(b), nil
41}
42
43func (l *stepPlayer) Close() error {
44 return nil

Callers 1

NewMethod · 0.80

Calls 1

NewMethod · 0.45

Tested by

no test coverage detected