github.com/linuxboot/fiano@v1.2.0/pkg/bytes/is_zero_filled.go (about) 1 // Copyright 2019 the LinuxBoot Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package bytes 6 7 //go:nosplit 8 func isZeroFilledSimple(b []byte) bool { 9 for _, v := range b { 10 if v != 0 { 11 return false 12 } 13 } 14 return true 15 }