Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Golangのパッケージ内のMmap()syscall は型を返しますが、基になる syscall は実際にはポインターを返します。これはどのように行うのですか?x/sys/unix []byte
Mmap()
x/sys/unix
[]byte
より具体的には、Golang 開発者によるこのVirtualAllocパッケージでは、関数は単純にポインターを返します。Unix パッケージで行われているのと同じ方法で、これをどのようにバイト スライスに変換できますか?
VirtualAlloc