Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ArrayRef<T>{
- int n;
- int offset;
- T[] array;
- public ArrayRef<T>(){
- n=0;
- offset=0;
- }
- public void unmarshal(MarshalInput in){
- n = in.readInt();
- offset = in.readInt();
- array = new T[n};
- in.seek(offset)
- for(int i = 0; i < n; i++){
- array[i] = ???;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement