MCPcopy Create free account
hub / github.com/google/gapid / Slice

Method Slice

gapis/memory/data.go:47–47  ·  view source on GitHub ↗

Slice returns a new Data referencing a subset range of the data. The range r is relative to the base of the Slice. For example a slice of [0, 4] would return a Slice referencing the first 5 bytes of this Slice. Attempting to slice outside the range of this Slice will result in a panic.

(r Range)

Source from the content-addressed store, hash-verified

45 // Attempting to slice outside the range of this Slice will result in a
46 // panic.
47 Slice(r Range) Data
48
49 // ValidRanges returns the list of slice-relative memory ranges that contain
50 // valid (non-zero) data that can be read with Get.

Callers 15

DedupeFunction · 0.65
SortFunction · 0.65
SortValuesFunction · 0.65
RemoveAtFunction · 0.65
replaceFunction · 0.65
SubTasksMethod · 0.65
ArgumentSlotsMethod · 0.65
compressMethod · 0.65
buildModuleMethod · 0.65
AllCommandsSortedMethod · 0.65
RunMethod · 0.65
computeAliasingMethod · 0.65

Implementers 4

poolSlicegapis/memory/pool.go
blobgapis/memory/blob.go
resourcegapis/memory/resource.go
resourceSlicegapis/memory/resource.go

Calls

no outgoing calls

Tested by 4

TestBlobSliceFunction · 0.52
TestGetFunction · 0.52
TestStateTreeNodeFunction · 0.52
TestSliceCastsFunction · 0.52