org.jcodec.containers.mkv.ebml
Class SignedIntegerElement
java.lang.Object
org.jcodec.containers.mkv.ebml.Element
org.jcodec.containers.mkv.ebml.BinaryElement
org.jcodec.containers.mkv.ebml.SignedIntegerElement
- Direct Known Subclasses:
- DateElement
public class SignedIntegerElement
- extends BinaryElement
Basic class for the Signed Integer EBML data type.
- Author:
- John Cannon
| Methods inherited from class org.jcodec.containers.mkv.ebml.Element |
ebmlBytes, ebmlBytes, getEbmlSize, getId, getSize, isSameEbmlId, isSameMatroskaType, mux, mux, readData, setParent, skipData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
signedComplement
public static final long[] signedComplement
SignedIntegerElement
public SignedIntegerElement(byte[] typeID)
setValue
public void setValue(long value)
getValue
public long getValue()
getSerializedSize
public static int getSerializedSize(long val)
- TODO: This should be replaces with a straight-forward calculation
- Parameters:
val -
- Returns:
convertToUnsigned
public static long convertToUnsigned(long val)
convertToBytes
public static byte[] convertToBytes(long val)
Copyright © 2013. All Rights Reserved.