예제 #1
0
        public static Result ReadFsPath(out FsPath path, ServiceCtx context, int index = 0)
        {
            long position = context.Request.PtrBuff[index].Position;
            long size     = context.Request.PtrBuff[index].Size;

            byte[] pathBytes = context.Memory.ReadBytes(position, size);

            return(FsPath.FromSpan(out path, pathBytes));
        }