github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/link/internal/ld/outbuf_nommap.go (about) 1 // Copyright 2019 The Go 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 //go:build !unix && !windows 6 7 package ld 8 9 // Mmap allocates an in-heap output buffer with the given size. It copies 10 // any old data (if any) to the new buffer. 11 func (out *OutBuf) Mmap(filesize uint64) error