1,105,214 Community Members

How and in what situation Ruby pack() methods need to use with directives?

Member Avatar
arupface
Newbie Poster
16 posts since Jan 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Could you please tell me how the below directives works with Ruby array pack() method. As the document not gives piece of code to describe what to use , when?

n,v,U,w,L!<,S!< I!<

thanks

Member Avatar
Taywin
Posting Maven
2,632 posts since Apr 2010
Reputation Points: 134 [?]
Q&As Helped to Solve: 378 [?]
Skill Endorsements: 17 [?]
 
0
 

Do you know big/little endian? It is about using template from the most/least significant bits. If you don't know, you may not need to do anything with it. Also, pack() function is not really common for regular programming, so you could ignore it.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article