本文整理汇总了Java中org.jcodec.common.NIOUtils.writePascalString方法的典型用法代码示例。如果您正苦于以下问题:Java NIOUtils.writePascalString方法的具体用法?Java NIOUtils.writePascalString怎么用?Java NIOUtils.writePascalString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jcodec.common.NIOUtils
的用法示例。
在下文中一共展示了NIOUtils.writePascalString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doWrite
import org.jcodec.common.NIOUtils; //导入方法依赖的package包/类
@Override
protected void doWrite(ByteBuffer out) {
super.doWrite(out);
out.putShort(font);
out.putShort(face);
out.putShort(size);
out.putShort((short) 0);
out.putShort(color[0]);
out.putShort(color[1]);
out.putShort(color[2]);
out.putShort(bgcolor[0]);
out.putShort(bgcolor[1]);
out.putShort(bgcolor[2]);
NIOUtils.writePascalString(out, name);
}
示例2: doWrite
import org.jcodec.common.NIOUtils; //导入方法依赖的package包/类
protected void doWrite(ByteBuffer out) {
super.doWrite(out);
if ((flags & 0x1) != 0) // self ref
return;
out.put(JCodecUtil.asciiString(type), 0, 4);
out.putShort(recordSize);
out.putShort(version);
out.putShort(kind);
NIOUtils.writePascalString(out, volumeName, 27);
out.putInt(volumeCreateDate);
out.putShort(volumeSignature);
out.putShort(volumeType);
out.putInt(parentDirId);
NIOUtils.writePascalString(out, fileName, 63);
out.putInt(fileNumber);
out.putInt(createdLocalDate);
out.put(JCodecUtil.asciiString(fileTypeName), 0, 4);
out.put(JCodecUtil.asciiString(creatorName), 0, 4);
out.putShort(nlvlFrom);
out.putShort(nlvlTo);
out.putInt(volumeAttributes);
out.putShort(fsId);
out.put(new byte[10]);
for (ExtraField extraField : extra) {
out.putShort(extraField.type);
out.putShort((short) extraField.len);
out.put(extraField.data);
}
out.putShort((short) -1);
out.putShort((short) 0);
}
示例3: doWrite
import org.jcodec.common.NIOUtils; //导入方法依赖的package包/类
@Override
public void doWrite(ByteBuffer out) {
super.doWrite(out);
out.putShort(version);
out.putShort(revision);
out.put(JCodecUtil.asciiString(vendor), 0, 4);
out.putInt(temporalQual);
out.putInt(spacialQual);
out.putShort((short) width);
out.putShort((short) height);
out.putInt((int) (hRes * 65536));
out.putInt((int) (vRes * 65536));
out.putInt(0); // data size
out.putShort(frameCount);
NIOUtils.writePascalString(out, compressorName, 31);
out.putShort(depth);
out.putShort(clrTbl);
writeExtensions(out);
}