예제 #1
0
 public ApolloBufferBase Read(ref ApolloBufferBase ab)
 {
     if (ab != null)
     {
         ab.Decode(this);
     }
     return(ab);
 }
예제 #2
0
        public bool Read(string name, ref ApolloBufferBase target)
        {
            int len = abase_apollo_object_get_len(this.ObjectId, name);

            if (len > 0)
            {
                byte[] buffer = new byte[len];
                if (abase_apollo_object_read_buffer(this.ObjectId, name, buffer, len))
                {
                    return(target.Decode(buffer));
                }
            }
            return(false);
        }