MCPcopy
hub / github.com/daptin/daptin / Encode

Method Encode

server/id/id.go:36–43  ·  view source on GitHub ↗
(ptr unsafe.Pointer, stream *jsoniter.Stream)

Source from the content-addressed store, hash-verified

34}
35
36func (c DaptinReferenceEncoder) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream) {
37 src := *((*DaptinReferenceId)(ptr))
38
39 //attachVal, _ := stream.Attachment.(DaptinReferenceId)
40 stream.WriteRaw(`"`)
41 stream.WriteRaw(src.String())
42 stream.WriteRaw(`"`)
43}
44
45func (c DaptinReferenceEncoder) IsEmpty(ptr unsafe.Pointer) bool {
46 return false

Callers 8

transportE2EWriteJSONFunction · 0.80
oauthFormRequestFunction · 0.80
ToURLQueryFunction · 0.80
HandleImageProcessingFunction · 0.80
appendQueryFunction · 0.80
appendCertificateBlocksFunction · 0.80

Calls 1

StringMethod · 0.65

Tested by 4

transportE2EWriteJSONFunction · 0.64
oauthFormRequestFunction · 0.64
ToURLQueryFunction · 0.64