NetShareEnumResponsepublic class NetShareEnumResponse extends SmbComTransactionResponse
Fields Summary |
---|
private int | converter | private int | totalAvailableEntries |
Constructors Summary |
---|
NetShareEnumResponse()
|
Methods Summary |
---|
int | readDataWireFormat(byte[] buffer, int bufferIndex, int len)
int start = bufferIndex;
SmbShareInfo e;
useUnicode = false;
results = new SmbShareInfo[numEntries];
for( int i = 0; i < numEntries; i++ ) {
results[i] = e = new SmbShareInfo();
e.netName = readString( buffer, bufferIndex, 13, false );
bufferIndex += 14;
e.type = readInt2( buffer, bufferIndex );
bufferIndex += 2;
int off = readInt4( buffer, bufferIndex );
bufferIndex += 4;
off = ( off & 0xFFFF ) - converter;
off = start + off;
e.remark = readString( buffer, off, 128, false );
if (log.level >= 4)
log.println( e );
}
return bufferIndex - start;
| int | readParametersWireFormat(byte[] buffer, int bufferIndex, int len)
int start = bufferIndex;
status = readInt2( buffer, bufferIndex );
bufferIndex += 2;
converter = readInt2( buffer, bufferIndex );
bufferIndex += 2;
numEntries = readInt2( buffer, bufferIndex );
bufferIndex += 2;
totalAvailableEntries = readInt2( buffer, bufferIndex );
bufferIndex += 2;
return bufferIndex - start;
| int | readSetupWireFormat(byte[] buffer, int bufferIndex, int len)
return 0;
| public java.lang.String | toString()
return new String( "NetShareEnumResponse[" +
super.toString() +
",status=" + status +
",converter=" + converter +
",entriesReturned=" + numEntries +
",totalAvailableEntries=" + totalAvailableEntries + "]" );
| int | writeDataWireFormat(byte[] dst, int dstIndex)
return 0;
| int | writeParametersWireFormat(byte[] dst, int dstIndex)
return 0;
| int | writeSetupWireFormat(byte[] dst, int dstIndex)
return 0;
|
|