Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonshotAI/kimi-code
/ byteLength
Function
byteLength
packages/agent-core/src/profile/context.ts:193–195 ·
view source on GitHub ↗
(text: string)
Source
from the content-addressed store, hash-verified
191
}
192
193
function
byteLength(text: string): number {
194
return
Buffer.byteLength(text,
'utf8'
);
195
}
196
197
function
formatKB(bytes: number): string {
198
const
kb = bytes / 1024;
Callers
1
loadAgentsMdForRoots
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected