source/Socket.cpp
byteLen_t xiSocket::ReadString( const char * const buffer, char * const byteptr ) {
	const char * c = &buffer[0];
	while ( *c ) {
		c++;
	}
	const size_t strLen = ( c - &buffer[0] );

	memcpy( &byteptr[0], &buffer[0], strLen );
	const byteLen_t lenPlusNull = ( byteLen_t )strlen( buffer ) + 1; // Returns the string plus the null terminator

	return lenPlusNull;
}
/*
====================
xiSocket::ReadString

	Copies buffer into byteptr up to a null-terminator
====================
*/
:ReadString
Copies buffer into byteptr up to a null-terminator
: ReadString Copies buffer into byteptr up to a null - terminator
byteLen_t xiSocket::ReadString( const char * const buffer, char * const byteptr ) {
	const char * c = &buffer[0];
	while ( *c ) {
		c++;
	}
	const size_t strLen = ( c - &buffer[0] );
	memcpy( &byteptr[0], &buffer[0], strLen );
	const byteLen_t lenPlusNull = ( byteLen_t )strlen( buffer ) + 1; 
	return lenPlusNull;
}
byteLen_t xiSocket :: ReadString ( const char * const buffer , char * const byteptr ) { const char * c = & buffer [ 0 ] ; while ( * c ) { c ++ ; } const size_t strLen = ( c - & buffer [ 0 ] ) ; memcpy ( & byteptr [ 0 ] , & buffer [ 0 ] , strLen ) ; const byteLen_t lenPlusNull = ( byteLen_t ) strlen ( buffer ) + 1 ; return lenPlusNull ; }
xiSocket::ReadString
Copies buffer into byteptr up to a null-terminator
xiSocket :: ReadString Copies buffer into byteptr up to a null - terminator
// Returns the string plus the null terminator