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

Method getCol

buffer.go:455–464  ·  view source on GitHub ↗

getCol returns the ith column data as a string slice Uses pointer receiver to avoid copying mutex

(i int)

Source from the content-addressed store, hash-verified

453// getCol returns the ith column data as a string slice
454// Uses pointer receiver to avoid copying mutex
455func (b *Buffer) getCol(i int) []string {
456 b.mu.RLock()
457 defer b.mu.RUnlock()
458
459 result := make([]string, b.rowLen)
460 for rowI := 0; rowI < b.rowLen; rowI++ {
461 result[rowI] = b.cont[rowI][i]
462 }
463 return result
464}
465
466// set ith column data type
467func (b *Buffer) setColType(i int, t int) {

Callers 4

TestBuffer_getColFunction · 0.80
TestBuffer_GetColFunction · 0.80
drawUIFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestBuffer_getColFunction · 0.64
TestBuffer_GetColFunction · 0.64