public static Stream ToStream(byte[] inArg0) { UserInfo stream = new UserInfo(); ByteArray data = new ByteArray(inArg0); stream.age = data.ReadInt(); stream.bookCount = data.ReadInt(); stream.books = new System.Int32[bookCount]; for (int i = 0; (i < stream.bookCount); i = (i + 1)) { stream.books[i] = data.ReadInt(); } return stream; }
public static Stream ToStream(byte[] inArg0) { Login stream = new Login(); ByteArray data = new ByteArray(inArg0); stream.PassWord = data.ReadInt(); stream.UserName = data.ReadString(); return stream; }