Advertisement
Guest User

WoW ArrayRef

a guest
Oct 3rd, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. public class ArrayRef<T>{
  2.     int n;
  3.     int offset;
  4.     T[] array;
  5.     public ArrayRef<T>(){
  6.         n=0;
  7.         offset=0;
  8.     }
  9.     public void unmarshal(MarshalInput in){
  10.         n = in.readInt();
  11.         offset = in.readInt();
  12.         array = new T[n};
  13.         in.seek(offset)
  14.         for(int i = 0; i < n; i++){
  15.             array[i] = ???;  
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement