Exemplo n.º 1
0
    // Pfm.FormatterDispatch.Close
    public void Close(Pfm.MarshallerCloseOp op)
    {
        long    openId       = op.OpenId();
        long    openSequence = op.OpenSequence();
        int     perr         = 0;
        OpenRef openRef;

        openRef = (OpenRef)(openRefs.Get(openId));
        if (openRef == null)
        {
            perr = Pfm.errorInvalid;
        }
        else
        {
            if (openRef.openSequence <= openSequence)
            {
                openRefs.Remove(openId);
                if (openRef.file.nameCount == 0)
                {
                    FileWrite(openRef.file, 0, null, 0);
                }
            }
        }

        op.Complete(perr);
    }
Exemplo n.º 2
0
 public void Close(Pfm.MarshallerCloseOp op)
 {
     op.Complete(Pfm.errorSuccess);
 }