MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / charCode

Method charCode

internal/caches/storage_file.go:1801–1809  ·  view source on GitHub ↗

计算字节数字代号

(r byte)

Source from the content-addressed store, hash-verified

1799
1800// 计算字节数字代号
1801func (this *FileStorage) charCode(r byte) uint8 {
1802 if r >= '0' && r <= '9' {
1803 return r - '0'
1804 }
1805 if r >= 'a' && r <= 'z' {
1806 return r - 'a' + 10
1807 }
1808 return 0
1809}

Callers 1

subDirMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected