Documentation ¶
Overview ¶
Package size provides functions to compute the size of some complex types
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSizeOfStringSlice ¶
DataSizeOfStringSlice returns the size of the content of the string slice in bytes.
func SizeOfStringSlice ¶
SizeOfStringSlice returns the size of the string slice in bytes (not counting the size of the strings themselves).
Types ¶
type HasSizeInBytes ¶
type HasSizeInBytes interface { // SizeInBytes Return the size of the object in bytes (not including the size of its content) SizeInBytes() int // DataSizeInBytes Return the size of content of the object in bytes DataSizeInBytes() int }
HasSizeInBytes is an interface that can be implemented by any object that has a size in bytes
Click to show internal directories.
Click to hide internal directories.