MCPcopy
hub / github.com/mxschmitt/playwright-go / ReadIntoBuffer

Method ReadIntoBuffer

artifact.go:61–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61func (a *artifactImpl) ReadIntoBuffer() ([]byte, error) {
62 streamChannel, err := a.channel.Send("stream")
63 if err != nil {
64 return nil, err
65 }
66 stream := fromChannel(streamChannel)
67 return stream.(*streamImpl).ReadAll()
68}
69
70func newArtifact(parent *channelOwner, objectType string, guid string, initializer map[string]any) *artifactImpl {
71 artifact := &artifactImpl{}

Callers 1

StopTracingMethod · 0.80

Calls 3

fromChannelFunction · 0.85
ReadAllMethod · 0.80
SendMethod · 0.65

Tested by

no test coverage detected