MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / UpdateBodyBytes

Method UpdateBodyBytes

db/document.go:313–316  ·  view source on GitHub ↗
(bodyBytes []byte)

Source from the content-addressed store, hash-verified

311}
312
313func (doc *Document) UpdateBodyBytes(bodyBytes []byte) {
314 doc._rawBody = bodyBytes
315 doc._body = nil
316}
317
318func (doc *Document) UpdateBody(body Body) {
319 doc._body = body

Callers 4

TestOnDemandImportFunction · 0.95
BenchmarkHandleRevDeltaFunction · 0.95
processRevMethod · 0.95

Calls

no outgoing calls

Tested by 2

TestOnDemandImportFunction · 0.76
BenchmarkHandleRevDeltaFunction · 0.76