public class TransactionLog extends Object implements IBinarySerializable, com.aspose.ms.System.IEquatable<TransactionLog>
The transaction log.
Constructor and Description |
---|
TransactionLog() |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(long srcId,
long transactionEntrySwitch)
Add the new entry.
|
boolean |
equals(Object other) |
boolean |
equals(TransactionLog other)
The equals.
|
long |
getCountById(long fileNodeListId)
Get number of FileNode items in FileNodeList.
|
long |
getStructSize()
Gets the struct size.
|
long |
getTransactionCount()
Gets the number of transactions.
|
byte[] |
toByteArray()
The to byte array.
|
public long getTransactionCount()
Gets the number of transactions.
public long getStructSize()
Gets the struct size.
getStructSize
in interface IBinarySerializable
public void addEntry(long srcId, long transactionEntrySwitch)
Add the new entry.
srcId
- Gets the identity of the file node list modified by this transaction, or the sentinel
entry for the transaction. A value of 0x00000001 specifies the sentinel entry.
Otherwise, MUST be equal to the value of the FileNodeListFragment.Header.fileNodeListID field of a file node list
in the file.transactionEntrySwitch
- 0x00000001(1) -> MUST be equal to CRC of all TransactionEntry structures in the current transaction.
other -> must be equal to the new number of FileNode structures in the file node list with a
FileNodeListFragment.Header.fileNodeListID field value equal to the value of the CRC ID field
after the file node list is added or modified by the transaction.public long getCountById(long fileNodeListId)
Get number of FileNode items in FileNodeList.
fileNodeListId
- Id (e.g. FileNodeListFragment.Header.fileNodeListID) of a file node list in the file.public byte[] toByteArray()
The to byte array.
toByteArray
in interface IBinarySerializable
T:byte[]
.com.aspose.ms.System.InvalidOperationException
- Incorrect buffer size.public boolean equals(TransactionLog other)
The equals.
other
- The other.bool
.public boolean equals(Object other)
equals
in interface com.aspose.ms.System.IEquatable<TransactionLog>
equals
in class Object
Copyright (c) 2017 Aspose. All Rights Reserved.