public Data getClone() { Data clonedData = new Data(); return clonedData; }
private Data constructNullBakraData() { Console.WriteLine("TransportLayerCommunicator::receiveTwoWay return data from notifyTwoWayMsg is null"); String strNull = "NULLBAKRA"; Data data = new Data(); data.buffer = System.Text.Encoding.ASCII.GetBytes(strNull); data.offset = 0; data.size = strNull.Length; return data; }
//need to decide: shallow or deep copy public Data(Data d) { }