MCPcopy Create free account
hub / github.com/Tencent/LuaHelper / StringToBytes

Function StringToBytes

luahelper-lsp/langserver/strbytesconv/strbytesconv.go:9–16  ·  view source on GitHub ↗

StringToBytes 实现string 转换成 []byte, 不用额外的内存分配

(str string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

Test_StringToBytesFunction · 0.85
Benchmark_StringToBytesFunction · 0.85

Calls

no outgoing calls

Tested by 2

Test_StringToBytesFunction · 0.68
Benchmark_StringToBytesFunction · 0.68