public class PLCDataBlock
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
Constructor and Description |
---|
PLCDataBlock()
This will create an empty data block with an offset and length of zero
and null data.
|
PLCDataBlock(byte[] data)
This will create a data block with an offset of zero and a length of the
total length of the data.
|
PLCDataBlock(byte[] data,
int offset,
int length)
This will create a data block with the specified offset and a length.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object test)
Check for equality.
|
byte[] |
getData()
Returns the data array.
|
int |
getLength()
Returns the length.
|
int |
getOffset()
Returns the offset.
|
void |
setData(byte[] data)
Sets the data array.
|
void |
setLength(int length)
Sets the length of the data.
|
void |
setOffset(int offset)
Sets the offset.
|
public static final java.lang.String cvsRev
public PLCDataBlock()
public PLCDataBlock(byte[] data)
public PLCDataBlock(byte[] data, int offset, int length)
public boolean equals(java.lang.Object test)
equals
in class java.lang.Object
public byte[] getData()
public int getLength()
public int getOffset()
public void setData(byte[] data)
public void setLength(int length)
public void setOffset(int offset)
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.