Methods Summary |
---|
int | readDataWireFormat(byte[] buffer, int bufferIndex, int len)
switch( informationLevel ) {
case SMB_INFO_ALLOCATION:
return readSmbInfoAllocationWireFormat( buffer, bufferIndex );
case SMB_QUERY_FS_SIZE_INFO:
return readSmbQueryFSSizeInfoWireFormat( buffer, bufferIndex );
case SMB_FS_FULL_SIZE_INFORMATION:
return readFsFullSizeInformationWireFormat( buffer, bufferIndex );
default:
return 0;
}
|
int | readFsFullSizeInformationWireFormat(byte[] buffer, int bufferIndex)
int start = bufferIndex;
SmbInfoAllocation info = new SmbInfoAllocation();
// Read total allocation units.
info.alloc = readInt8( buffer, bufferIndex );
bufferIndex += 8;
// read caller available allocation units
info.free = readInt8( buffer, bufferIndex );
bufferIndex += 8;
// skip actual free units
bufferIndex += 8;
info.sectPerAlloc = readInt4( buffer, bufferIndex );
bufferIndex += 4;
info.bytesPerSect = readInt4( buffer, bufferIndex );
bufferIndex += 4;
this.info = info;
return bufferIndex - start;
|
int | readParametersWireFormat(byte[] buffer, int bufferIndex, int len)
return 0;
|
int | readSetupWireFormat(byte[] buffer, int bufferIndex, int len)
return 0;
|
int | readSmbInfoAllocationWireFormat(byte[] buffer, int bufferIndex)
int start = bufferIndex;
SmbInfoAllocation info = new SmbInfoAllocation();
bufferIndex += 4; // skip idFileSystem
info.sectPerAlloc = readInt4( buffer, bufferIndex );
bufferIndex += 4;
info.alloc = readInt4( buffer, bufferIndex );
bufferIndex += 4;
info.free = readInt4( buffer, bufferIndex );
bufferIndex += 4;
info.bytesPerSect = readInt2( buffer, bufferIndex );
bufferIndex += 4;
this.info = info;
return bufferIndex - start;
|
int | readSmbQueryFSSizeInfoWireFormat(byte[] buffer, int bufferIndex)
int start = bufferIndex;
SmbInfoAllocation info = new SmbInfoAllocation();
info.alloc = readInt8( buffer, bufferIndex );
bufferIndex += 8;
info.free = readInt8( buffer, bufferIndex );
bufferIndex += 8;
info.sectPerAlloc = readInt4( buffer, bufferIndex );
bufferIndex += 4;
info.bytesPerSect = readInt4( buffer, bufferIndex );
bufferIndex += 4;
this.info = info;
return bufferIndex - start;
|
public java.lang.String | toString()
return new String( "Trans2QueryFSInformationResponse[" +
super.toString() + "]" );
|
int | writeDataWireFormat(byte[] dst, int dstIndex)
return 0;
|
int | writeParametersWireFormat(byte[] dst, int dstIndex)
return 0;
|
int | writeSetupWireFormat(byte[] dst, int dstIndex)
return 0;
|