MCPcopy
hub / github.com/q191201771/lal / Write

Method Write

pkg/rtmp/message_packer.go:318–324  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

316}
317
318func (b *Buffer) Write(p []byte) (n int, err error) {
319 b.grow(len(p))
320 copy(b.core[b.writePos:], p)
321 b.writePos += len(p)
322
323 return len(p), nil
324}
325
326func (b *Buffer) WriteByte(c byte) error {
327 b.grow(1)

Callers 15

Annexb2AvccFunction · 0.95
MetadataEnsureWithSdfFunction · 0.95
TestChunkComposerFunction · 0.95
TestHandshakeServerCaseFunction · 0.95
TestHandshakeClientCaseFunction · 0.95
testPushFileFunction · 0.45
entryFunction · 0.45
CaptureAvcc2AnnexbFunction · 0.45
ChunkAndWriteMethod · 0.45
WriteToMethod · 0.45
WriteNumberMethod · 0.45
WriteStringMethod · 0.45

Calls 1

growMethod · 0.95

Tested by 5

TestChunkComposerFunction · 0.76
TestHandshakeServerCaseFunction · 0.76
TestHandshakeClientCaseFunction · 0.76
testPushFileFunction · 0.36
test1Function · 0.36