public SocketAddress(AddressFamily family, int size) {
if (size<WriteableOffset) {
//
// it doesn't make sense to create a socket address with less tha
// 2 bytes, that's where we store the address family.
//
throw new ArgumentOutOfRangeException("size");
}
m_Size = size;
m_Buffer = new byte[(size/IntPtr.Size+2)*IntPtr.Size];//sizeof DWORD
#if BIGENDIAN
m_Buffer[0] = unchecked((byte)((int)family>>8));
m_Buffer[1] = unchecked((byte)((int)family ));
#else
m_Buffer[0] = unchecked((byte)((int)family ));
m_Buffer[1] = unchecked((byte)((int)family>>8));
#endif
}
//