mirror of
https://github.com/Quad4-Software/Reticulum-Go
synced 2026-08-29 23:48:44 -04:00
15 lines
347 B
Go
15 lines
347 B
Go
// SPDX-License-Identifier: Apache-2.0
|
|
// Copyright (c) 2024-2026 Quad4.io
|
|
|
|
//go:build !unix || wasm || haiku
|
|
|
|
package securemem
|
|
|
|
func allocLocked(n int) (data []byte, locked bool, native bool, err error) {
|
|
return make([]byte, n), false, false, nil
|
|
}
|
|
|
|
func freeLocked(data []byte, locked bool, native bool) error {
|
|
WipeBytes(data)
|
|
return nil
|
|
}
|