internal virtual int ReadSmbQueryFsSizeInfoWireFormat(byte[] buffer, int bufferIndex) { int start = bufferIndex; SmbInfoAllocation info = new SmbInfoAllocation(this); 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); }
internal virtual int ReadSmbInfoAllocationWireFormat(byte[] buffer, int bufferIndex) { int start = bufferIndex; SmbInfoAllocation info = new SmbInfoAllocation(this); 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); }
internal virtual int ReadFsFullSizeInformationWireFormat(byte[] buffer, int bufferIndex) { int start = bufferIndex; SmbInfoAllocation info = new SmbInfoAllocation(this); // 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); }
internal virtual int ReadFsFullSizeInformationWireFormat(byte[] buffer, int bufferIndex ) { int start = bufferIndex; SmbInfoAllocation info = new SmbInfoAllocation (this); // 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; }
internal virtual int ReadSmbQueryFsSizeInfoWireFormat(byte[] buffer, int bufferIndex ) { int start = bufferIndex; SmbInfoAllocation info = new SmbInfoAllocation (this); 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; }
internal virtual int ReadSmbInfoAllocationWireFormat(byte[] buffer, int bufferIndex ) { int start = bufferIndex; SmbInfoAllocation info = new SmbInfoAllocation (this); 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; }