int readHeaderWireFormat ( InputStream in, byte[] buffer, int bufferIndex ) { this.type = buffer[ bufferIndex++ ] & 0xFF; this.length = ( ( buffer[ bufferIndex ] & 0x01 ) << 16 ) + readInt2(buffer, bufferIndex + 1); return HEADER_LENGTH; }
int readHeaderWireFormat( InputStream in, byte[] buffer, int bufferIndex ) throws IOException { type = buffer[bufferIndex++] & 0xFF; length = (( buffer[bufferIndex] & 0x01 ) << 16 ) + readInt2( buffer, bufferIndex + 1 ); return HEADER_LENGTH; }
int readHeaderWireFormat( InputStream in, byte[] buffer, int bufferIndex ) throws IOException { type = buffer[bufferIndex++] & 0xFF; length = (( buffer[bufferIndex] & 0x01 ) << 16 ) + readInt2( buffer, bufferIndex + 1 ); return HEADER_LENGTH; }
int readHeaderWireFormat( InputStream in, byte[] buffer, int bufferIndex ) throws IOException { type = buffer[bufferIndex++] & 0xFF; length = (( buffer[bufferIndex] & 0x01 ) << 16 ) + readInt2( buffer, bufferIndex + 1 ); return HEADER_LENGTH; }
int readHeaderWireFormat ( InputStream in, byte[] buffer, int bufferIndex ) { this.type = buffer[ bufferIndex++ ] & 0xFF; this.length = ( ( buffer[ bufferIndex ] & 0x01 ) << 16 ) + readInt2(buffer, bufferIndex + 1); return HEADER_LENGTH; }
int readHeaderWireFormat( InputStream in, byte[] buffer, int bufferIndex ) throws IOException { type = buffer[bufferIndex++] & 0xFF; length = (( buffer[bufferIndex] & 0x01 ) << 16 ) + readInt2( buffer, bufferIndex + 1 ); return HEADER_LENGTH; }
int readTrailerWireFormat( InputStream in, byte[] buffer, int bufferIndex ) throws IOException { if( in.read( buffer, bufferIndex, length ) != length ) { throw new IOException( "unexpected EOF reading netbios retarget session response" ); } int addr = readInt4( buffer, bufferIndex ); bufferIndex += 4; retargetAddress = new NbtAddress( null, addr, false, NbtAddress.B_NODE ); retargetPort = readInt2( buffer, bufferIndex ); return length; } }