MCPcopy Create free account
hub / github.com/djherbis/buffer / ReadAt

Method ReadAt

buffer_test.go:775–775  ·  view source on GitHub ↗
(p []byte, off int64)

Source from the content-addressed store, hash-verified

773func (b badFile) Name() string { return "" }
774func (b badFile) Stat() (os.FileInfo, error) { return nil, errors.New("unsupported") }
775func (b badFile) ReadAt(p []byte, off int64) (int, error) { return 0, nil }
776func (b badFile) WriteAt(p []byte, off int64) (int, error) { return len(p), nil }
777func (b badFile) Close() error { return nil }
778

Callers 5

CompareFunction · 0.45
TestSwapAtFunction · 0.45
TestPanicReadAtFunction · 0.45
TestPartitionAt2Function · 0.45
TestPartitionAt3Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected