ReadMapStart() public abstract method

Reads the start of a list.
public abstract ReadMapStart ( ) : int
return int
Exemplo n.º 1
0
        /// <summary>
        /// Reads map from input
        /// </summary>
        /// <param name="abstractHessianInput">Input stream</param>
        /// <returns>Read map or null</returns>
        public override object ReadObject(AbstractHessianInput abstractHessianInput)
        {
            //Read map start
            int code = abstractHessianInput.ReadMapStart();

            switch (code)
            {
            case CHessianInput.PROT_NULL:
                return(null);

            case CHessianInput.PROT_REF_TYPE:
                return(abstractHessianInput.ReadRef());

            case 'r':
                throw new CHessianException("remote type is not implemented!");
            }
            return(ReadMap(abstractHessianInput));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Reads enum from input 
 /// </summary>
 /// <param name="abstractHessianInput">Input stream</param>
 /// <returns>Read map or null</returns>
 public override object ReadObject(AbstractHessianInput abstractHessianInput)
 {
     //Read map start
     int code = abstractHessianInput.ReadMapStart();
     switch (code)
     {
         case CHessianInput.PROT_NULL:
             return null;
         case CHessianInput.PROT_REF_TYPE:
             return abstractHessianInput.ReadRef();
         case 'r':
             throw new CHessianException("remote type is not implemented!");
     }
     return ReadMap(abstractHessianInput);
 }