⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slog_dirhdr.java

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 JAVA
字号:
import java.io.*;public class SLOG_DirHdr implements Serializable{    public long     prevdir;    public long     nextdir;    public int      Nframe;    public SLOG_DirHdr()    {        prevdir = SLOG_Const.NULL_fptr;        nextdir = SLOG_Const.NULL_fptr;        Nframe  = 0;    }    public SLOG_DirHdr( long in_prevdir, long in_nextdir, int in_Nframe )    {        prevdir = in_prevdir;        nextdir = in_nextdir;        Nframe  = in_Nframe;    }    public SLOG_DirHdr( RandomAccessFile file_stm )    throws IOException    {        this.ReadFromRandomFile( file_stm );    }    public void ReadFromRandomFile( RandomAccessFile file_stm )    throws IOException    {        prevdir = file_stm.readLong();        nextdir = file_stm.readLong();        Nframe  = file_stm.readInt();    }    public void WriteToRandomFile( RandomAccessFile file_stm )    throws IOException    {        file_stm.writeLong( this.prevdir );        file_stm.writeLong( this.nextdir );        file_stm.writeInt( this.Nframe );    }    public String toString()    {        StringBuffer representation = new StringBuffer();        representation.append( "PrevDir at " + prevdir + ",   " );        representation.append( "NextDir at " + nextdir + ",   " );        representation.append( "Nframe = " + Nframe );        return( representation.toString() );    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -