本文整理汇总了Java中com.intellij.util.io.DataInputOutputUtil.writeLONG方法的典型用法代码示例。如果您正苦于以下问题:Java DataInputOutputUtil.writeLONG方法的具体用法?Java DataInputOutputUtil.writeLONG怎么用?Java DataInputOutputUtil.writeLONG使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.util.io.DataInputOutputUtil
的用法示例。
在下文中一共展示了DataInputOutputUtil.writeLONG方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: write
import com.intellij.util.io.DataInputOutputUtil; //导入方法依赖的package包/类
public void write(DataOutput out) throws IOException {
LocalHistoryLog.LOG.assertTrue(isLocked, "Changeset should be locked");
DataInputOutputUtil.writeLONG(out, myId);
StreamUtil.writeStringOrNull(out, myName);
DataInputOutputUtil.writeTIME(out, myTimestamp);
DataInputOutputUtil.writeINT(out, myChanges.size());
for (Change c : myChanges) {
StreamUtil.writeChange(out, c);
}
}
示例2: write
import com.intellij.util.io.DataInputOutputUtil; //导入方法依赖的package包/类
public void write(DataOutput out) throws IOException {
if (PersistentHashMapValueStorage.COMPRESSION_ENABLED) {
DataInputOutputUtil.writeINT(out, myLength);
out.write(myBytes, 0, myLength);
DataInputOutputUtil.writeLONG(out, myByteContentLength);
DataInputOutputUtil.writeINT(out, myCharContentLength);
} else {
CompressionUtil.writeCompressed(out, myBytes, myLength);
out.writeLong(myByteContentLength);
out.writeInt(myCharContentLength);
}
}
示例3: rememberIndexingStamp
import com.intellij.util.io.DataInputOutputUtil; //导入方法依赖的package包/类
private static void rememberIndexingStamp(final VirtualFile file, long contentLength) {
try {
DataOutputStream stream = INDEXED_STAMP.writeAttribute(file);
DataInputOutputUtil.writeTIME(stream, file.getTimeStamp());
DataInputOutputUtil.writeLONG(stream, contentLength);
stream.close();
}
catch (IOException e) {
LOG.error(e);
}
}
示例4: write
import com.intellij.util.io.DataInputOutputUtil; //导入方法依赖的package包/类
public void write(DataOutput out) throws IOException {
DataInputOutputUtil.writeLONG(out, myId);
}