MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / getMemoryLimit

Method getMemoryLimit

buffer.go:176–180  ·  view source on GitHub ↗

getMemoryLimit returns the configured memory limit

()

Source from the content-addressed store, hash-verified

174
175// getMemoryLimit returns the configured memory limit
176func (b *Buffer) getMemoryLimit() int64 {
177 b.mu.RLock()
178 defer b.mu.RUnlock()
179 return b.maxMemory
180}
181
182// setMemoryLimit sets the maximum memory limit in bytes (0 = no limit)
183func (b *Buffer) setMemoryLimit(bytes int64) {

Callers 1

TestMemoryLimit_BasicFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestMemoryLimit_BasicFunction · 0.64