bigslice: github.com/grailbio/bigslice/internal/zero Index | Files

package zero

import "github.com/grailbio/bigslice/internal/zero"

Package zero provides facilities for efficiently zeroing Go values.

Index

Package Files

zero.go

func Slice Uses

func Slice(v interface{})

Slice zeroes the elements 0 <= i < v.Len() of the provided slice. Slice panics if the value is not a slice. f

func SliceValue Uses

func SliceValue(v reflect.Value)

SliceValue zeroes the elements 0 <= i < v.Len() of the provided slice value. Slice panics if the value is not a slice. f

func Unsafe Uses

func Unsafe(t reflect.Type, ptr uintptr, n int)

Unsafe zeroes n elements starting at the address ptr. Elements must of type t.

Package zero imports 3 packages (graph) and is imported by 1 packages. Updated 2019-10-02. Refresh now. Tools for package owners.