public class SmfData extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
data |
Constructor and Description |
---|
SmfData(byte[] Data)
Create a SmfData section from a byte array.
|
SmfData(byte[] Data,
int offset,
int length)
Create a SmfData section with data copied from an existing byte array
|
Modifier and Type | Method and Description |
---|---|
<T> T |
createSection(byte[] data,
int offset,
int length,
com.blackhillsoftware.smf.internal.CreateSection<T> builder) |
String |
dump() |
static String |
dump(byte[] data) |
static String |
dump(byte[] data,
int offset,
int length) |
String |
dump(int offset,
int length) |
boolean |
equals(Object obj)
Tests equality, returns true if data arrays contain the same data,
and objects are of the same type.
|
byte[] |
getBytes()
Get a copy of the data in this record or section
|
byte[] |
getBytes(int offset,
int length)
Get a copy of the data in this record or section from a particular offset and length
|
protected byte[] |
getDataArray() |
com.blackhillsoftware.smf.internal.Triplet |
getTriplet(int offset) |
int |
hashCode() |
String |
toString() |
public SmfData(byte[] Data, int offset, int length)
Data
- offset
- length
- public SmfData(byte[] Data)
Data
- public byte[] getBytes()
public byte[] getBytes(int offset, int length)
offset
- offset from the start of the datalength
- the length of the data to be returnedprotected byte[] getDataArray()
public <T> T createSection(byte[] data, int offset, int length, com.blackhillsoftware.smf.internal.CreateSection<T> builder)
public com.blackhillsoftware.smf.internal.Triplet getTriplet(int offset)
public String dump()
public String dump(int offset, int length)
public static String dump(byte[] data)
public static String dump(byte[] data, int offset, int length)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
Copyright © 2021 Black Hill Software Pty Ltd. All rights reserved.