Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
AnswerRe: Watching Data Send and Recieved for a particular internet connection Pin
Judah Gabriel Himango22-Sep-06 6:42
sponsorJudah Gabriel Himango22-Sep-06 6:42 
Questionhow to use List Pin
waheed awan22-Sep-06 5:46
waheed awan22-Sep-06 5:46 
AnswerRe: how to use List Pin
Judah Gabriel Himango22-Sep-06 5:51
sponsorJudah Gabriel Himango22-Sep-06 5:51 
AnswerRe: how to use List Pin
User 665822-Sep-06 5:52
User 665822-Sep-06 5:52 
Questionformat of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 5:32
b_girl22-Sep-06 5:32 
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Guffa22-Sep-06 6:39
Guffa22-Sep-06 6:39 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 7:19
b_girl22-Sep-06 7:19 
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Guffa22-Sep-06 9:25
Guffa22-Sep-06 9:25 
The << operator shifts the first operand to the left the number of bits specificed by the second operand. As you have four bytes which should be positioned after each other in the uint, you shift the values to place the bytes at the correct position before adding them.

In binary it looks like this:

10 = 00001010
11 = 00001011
7 = 00000111
3 = 00000011

10 << 24 = 00001010000000000000000000000000
11 << 16 = 00000000000010110000000000000000
7 << 8 = 00000000000000000000011100000000
3 = 00000000000000000000000000000011

Adding them together gives the value:

00001010000010110000011100000011

Example code:

uint o1 = 10;
uint o2 = 11;
uint o3 = 7;
uint o4 = 3;
uint code = (o1 << 24) + (o2 << 16) + (o3 << 8) + o4;



---
b { font-weight: normal; }

GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 9:40
b_girl22-Sep-06 9:40 
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Guffa22-Sep-06 9:47
Guffa22-Sep-06 9:47 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
User 665822-Sep-06 9:57
User 665822-Sep-06 9:57 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 10:15
b_girl22-Sep-06 10:15 
AnswerRe: format of MIB_IPFORWARDROW structure? Pin
Judah Gabriel Himango22-Sep-06 6:39
sponsorJudah Gabriel Himango22-Sep-06 6:39 
GeneralRe: format of MIB_IPFORWARDROW structure? Pin
b_girl22-Sep-06 7:15
b_girl22-Sep-06 7:15 
QuestionHow to get the size in bytes of a file name? Pin
Yustme22-Sep-06 5:00
Yustme22-Sep-06 5:00 
AnswerRe: How to get the size in bytes of a file name? Pin
Judah Gabriel Himango22-Sep-06 5:06
sponsorJudah Gabriel Himango22-Sep-06 5:06 
GeneralRe: How to get the size in bytes of a file name? Pin
User 665822-Sep-06 5:55
User 665822-Sep-06 5:55 
GeneralRe: How to get the size in bytes of a file name? Pin
Judah Gabriel Himango22-Sep-06 6:28
sponsorJudah Gabriel Himango22-Sep-06 6:28 
GeneralRe: How to get the size in bytes of a file name? Pin
Guffa22-Sep-06 6:41
Guffa22-Sep-06 6:41 
AnswerRe: How to get the size in bytes of a file name? Pin
Guffa22-Sep-06 5:15
Guffa22-Sep-06 5:15 
GeneralRe: How to get the size in bytes of a file name? Pin
Yustme22-Sep-06 7:54
Yustme22-Sep-06 7:54 
AnswerRe: How to get the size in bytes of a file name? Pin
Guffa22-Sep-06 9:46
Guffa22-Sep-06 9:46 
GeneralRe: How to get the size in bytes of a file name? Pin
Yustme22-Sep-06 9:54
Yustme22-Sep-06 9:54 
QuestionCustom Line Object Pin
ystl22-Sep-06 4:56
ystl22-Sep-06 4:56 
AnswerRe: Custom Line Object Pin
Judah Gabriel Himango22-Sep-06 5:34
sponsorJudah Gabriel Himango22-Sep-06 5:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.