MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / NewRecord

Function NewRecord

message/elements.go:207–209  ·  view source on GitHub ↗
(data []byte, summary ...string)

Source from the content-addressed store, hash-verified

205}
206
207func NewRecord(data []byte, summary ...string) *VoiceElement {
208 return NewStreamRecord(bytes.NewReader(data), summary...)
209}
210
211func NewStreamRecord(r io.ReadSeeker, summary ...string) *VoiceElement {
212 md5, sha1, length := crypto.ComputeMd5AndSha1AndLength(r)

Callers

nothing calls this directly

Calls 1

NewStreamRecordFunction · 0.85

Tested by

no test coverage detected