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

Function NewImage

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

Source from the content-addressed store, hash-verified

239}
240
241func NewImage(data []byte, summary ...string) *ImageElement {
242 return NewStreamImage(bytes.NewReader(data), summary...)
243}
244
245func NewStreamImage(r io.ReadSeeker, summary ...string) *ImageElement {
246 md5, sha1, length := crypto.ComputeMd5AndSha1AndLength(r)

Callers

nothing calls this directly

Calls 1

NewStreamImageFunction · 0.85

Tested by

no test coverage detected