Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

what are the meaning of function parameter #2

Closed
0colonel0 opened this issue Sep 10, 2018 · 2 comments
Closed

what are the meaning of function parameter #2

0colonel0 opened this issue Sep 10, 2018 · 2 comments

Comments

@0colonel0
Copy link

create(“shm_name”,256),what is the meaning of 256?256 byte?

@hidez8891
Copy link
Owner

Yes. size is in bytes.

func Create(name string, size int32) (*Memory, error)

This parameter is used for CreateFileMapping() on Windows and ftruncate() on Linux.

@0colonel0
Copy link
Author

get it ,Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants