ADDED:
* iox package
* mapsx package
* netx/inetcksum package
This commit is contained in:
brent saner committed 2025-12-18 04:47:31 -05:00
1 parent 6ddfcdb416
commit 145c32268e
19 files changed
+824 -148

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
package iox
// GetChunkLen returns the current chunk size/length in bytes.
func (c *ChunkLocker) GetChunkLen() (size uint) {
c.lock.RLock()
defer c.lock.RUnlock()
size = c.chunkLen
return
}
// SetChunkLen sets the current chunk size/length in bytes.
func (c *ChunkLocker) SetChunkLen(size uint) (err error) {
if size == 0 {
err = ErrInvalidChunkSize
return
}
c.lock.Lock()
defer c.lock.Unlock()
c.chunkLen = size
return
}