burn_safe.go 519 B

123456789101112131415161718192021222324
  1. // burn_safe.go - burn (unsafe not available)
  2. //
  3. // To the extent possible under law, Yawning Angel has waived all copyright
  4. // and related or neighboring rights to the software, using the Creative
  5. // Commons "CC0" public domain dedication. See LICENSE or
  6. // <http://creativecommons.org/publicdomain/zero/1.0/> for full details.
  7. // +build noasm appengine
  8. package norx
  9. import "unsafe"
  10. func burnBytes(b []byte) {
  11. for i := range b {
  12. b[i] = 0
  13. }
  14. }
  15. func burnUint64s(b []uint64) {
  16. for i := range b {
  17. b[i] = 0
  18. }
  19. }