-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCompressedVariableValuesRecord.java
More file actions
41 lines (36 loc) · 1.01 KB
/
CompressedVariableValuesRecord.java
File metadata and controls
41 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package uk.ac.bristol.star.cdf.record;
import java.io.IOException;
/**
* Field data for CDF record of type Compressed Variable Values Record.
*
* @author Mark Taylor
* @since 19 Jun 2013
*/
public class CompressedVariableValuesRecord extends Record {
@CdfField public final int rfuA;
@CdfField public final long cSize;
private final long dataOffset_;
/**
* Constructor.
*
* @param plan basic record information
*/
public CompressedVariableValuesRecord( RecordPlan plan )
throws IOException {
super( plan, "CVVR", 13 );
Buf buf = plan.getBuf();
Pointer ptr = plan.createContentPointer();
this.rfuA = buf.readInt( ptr );
this.cSize = buf.readOffset( ptr );
dataOffset_ = ptr.get();
}
/**
* Returns the file offset at which the compressed data in
* this record starts.
*
* @return file offset for start of data field
*/
public long getDataOffset() {
return dataOffset_;
}
}