Discover Packages
github.com/zerjioang/gotools
lib
memory
sizeof
package
Version:
v0.0.0-...-bb1a4e7
Opens a new window with list of versions in this module.
Published: May 9, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Sizeof(objs ...interface{}) (sz uint64 )
Sizeof returns the estimated memory usage of object(s) not just the size of the type.
On 64bit Sizeof("test") == 12 (8 = sizeof(StringHeader) + 4 bytes).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.