File: RawRecord.java

package info (click to toggle)
pilot-link 0.12.5-dfsg-2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 6,868 kB
  • ctags: 5,811
  • sloc: ansic: 53,153; sh: 10,459; java: 2,584; perl: 2,247; python: 1,044; makefile: 991; yacc: 662; cpp: 551; xml: 39
file content (23 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.gnu.pilotlink;

public class RawRecord extends Record {
	private byte[] buffer;
	
	public RawRecord(byte[] b,long i, int sz, int attr, int cat) {
		buffer=b;
		setCategory(cat);
		setAttribs(attr);
		setSize(sz);
		setId(i);	
		//System.out.println("Attribs: "+attr);
	}
	public RawRecord(byte[] b, int sz, int attr, int cat) {
		this(b,0,sz,attr,cat);
	}
    public byte[] getBuffer() {
        return buffer;
    }
    public void setBuffer(byte buf[]) {
        buffer=buf;
    }
}