Debian Codegraph @

memory.go

raw
1 // Copyright 2019 Huan Du. All rights reserved.
2 // Licensed under the MIT license that can be found in the LICENSE file.
3
4 package clone
5
6 // maxByteSize is a large enough value to cheat Go compiler
7 // when converting unsafe address to []byte.
8 // It's not actually used in runtime.
9 //
10 // The value 2^30 is the max value AFAIK to make Go compiler happy on all archs.
11 const maxByteSize = 1 << 30