Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ Truncate
Method
Truncate
internal/utils/fs/file.go:78–83 ·
view source on GitHub ↗
(size int64)
Source
from the content-addressed store, hash-verified
76
}
77
78
func
(this *File) Truncate(size int64) (err error) {
79
WriterLimiter.Ack()
80
err = this.rawFile.Truncate(size)
81
WriterLimiter.Release()
82
return
83
}
84
85
func
(this *File) Close() (err error) {
86
if
!this.readonly {
Callers
4
Compact
Method · 0.45
Init
Method · 0.45
RemoveAllItems
Method · 0.45
WriteAt
Method · 0.45
Calls
2
Ack
Method · 0.45
Release
Method · 0.45
Tested by
no test coverage detected