MCPcopy Create free account
hub / github.com/devld/go-drive / SeekTo

Method SeekTo

script/object_io.go:182–188  ·  view source on GitHub ↗
(offset int64, whence int)

Source from the content-addressed store, hash-verified

180}
181
182func (tf TempFile) SeekTo(offset int64, whence int) int64 {
183 ret, e := tf.f.Seek(offset, whence)
184 if e != nil {
185 tf.vm.ThrowError(e)
186 }
187 return ret
188}
189
190func (tf TempFile) Size() int64 {
191 info, e := tf.f.Stat()

Callers

nothing calls this directly

Calls 2

ThrowErrorMethod · 0.80
SeekMethod · 0.45

Tested by

no test coverage detected