Fanx.Fcode.FBuf.read C# (CSharp) Method

read() public static method

public static read ( FStore input ) : FBuf
input FStore
return FBuf
        public static FBuf read(FStore.Input input)
        {
            int len = input.u2();
              if (len == 0) return null;

              byte[] buf = new byte[len];
              for (int r=0; r<len;) r += input.Read(buf, r, len-r);
              return new FBuf(buf, len);
        }

Usage Example

Ejemplo n.º 1
0
 public FMethod read(FStore.Input input)
 {
     base.readCommon(input);
     m_ret          = input.u2();
     m_inheritedRet = input.u2();
     m_maxStack     = input.u1();
     m_paramCount   = input.u1();
     m_localCount   = input.u1();
     m_vars         = new FMethodVar[m_paramCount + m_localCount];
     for (int i = 0; i < m_vars.Length; i++)
     {
         m_vars[i] = new FMethodVar().read(input);
     }
     m_code = FBuf.read(input);
     base.readAttrs(input);
     return(this);
 }
All Usage Examples Of Fanx.Fcode.FBuf::read