Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CurrentSize (0.06 sec)

  1. internal/bpool/bpool.go

    // WidthCap returns the cap width of the byte arrays in this pool.
    func (bp *BytePoolCap) WidthCap() (n int) {
    	if bp == nil {
    		return 0
    	}
    	return bp.wcap
    }
    
    // CurrentSize returns current size of buffer pool
    func (bp *BytePoolCap) CurrentSize() int {
    	if bp == nil {
    		return 0
    	}
    	return len(bp.c) * bp.w
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top