示例#1
0
        // SetSize(u64 size)
        public long SetSize(ServiceCtx context)
        {
            long size = context.RequestData.ReadInt64();

            _baseFile.SetSize(size);

            return(0);
        }
示例#2
0
        // SetSize(u64 size)
        public ResultCode SetSize(ServiceCtx context)
        {
            try
            {
                long size = context.RequestData.ReadInt64();

                _baseFile.SetSize(size);
            }
            catch (HorizonResultException ex)
            {
                return((ResultCode)ex.ResultValue.Value);
            }

            return(ResultCode.Success);
        }
示例#3
0
        // SetSize(u64 size)
        public ResultCode SetSize(ServiceCtx context)
        {
            long size = context.RequestData.ReadInt64();

            return((ResultCode)_baseFile.SetSize(size).Value);
        }