mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Add a DoubleArray example.
This commit is contained in:
@@ -92,6 +92,7 @@ public class DoubleArray implements Byteable, Copyable<DoubleArray> {
|
||||
@Override
|
||||
public void copyFrom(DoubleArray doubleArray) {
|
||||
int length = length();
|
||||
// set first so we check the length will fit.
|
||||
doubleArray.setLength(length);
|
||||
for (int i = 0; i < length; i++)
|
||||
doubleArray.setDataAt(i, getDataAt(i));
|
||||
|
||||
Reference in New Issue
Block a user