Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TarsCloud/TarsGo
/ ToBytes
Method
ToBytes
tars/protocol/codec/codec.go:341–343 ·
view source on GitHub ↗
ToBytes make the buffer to []byte
()
Source
from the content-addressed store, hash-verified
339
340
// ToBytes make the buffer to []byte
341
func
(b *Buffer) ToBytes() []byte {
342
return
b.buf.Bytes()
343
}
344
345
func
(b *Buffer) Len() int {
346
return
b.buf.Len()
Callers
15
req2Byte
Method · 0.95
rsp2Byte
Method · 0.95
RequestPack
Method · 0.95
TestTarsProtocol_ResponseUnpack
Function · 0.95
response2Bytes
Function · 0.95
AuthProcessWithContext
Method · 0.95
AuthProcessOneWayWithContext
Method · 0.95
GetTokensWithContext
Method · 0.95
GetTokensOneWayWithContext
Method · 0.95
ApplyTokenWithContext
Method · 0.95
ApplyTokenOneWayWithContext
Method · 0.95
DeleteTokenWithContext
Method · 0.95
Calls
no outgoing calls
Tested by
3
TestTarsProtocol_ResponseUnpack
Function · 0.76
r
Function · 0.36
TestReader_ToBytes
Function · 0.36