예제 #1
0
파일: Api.cs 프로젝트: fw2568/YaNco
 public static RfcRc SetString(IDataContainerHandle containerHandle, string name, string value, out
                               RfcErrorInfo errorInfo)
 {
     return(Interopt.RfcSetString(containerHandle.Ptr, name, value, (uint)value.Length, out errorInfo));
 }
예제 #2
0
 public static RfcRc GetFunctionParameterDescription(FunctionDescriptionHandle descriptionHandle,
                                                     int index, out RfcParameterInfo parameterInfo, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public static RfcRc GetTable(IDataContainerHandle dataContainer, string name, out TableHandle table,
                              out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public static RfcRc GetTypeFieldDescription(TypeDescriptionHandle descriptionHandle, int index,
                                             out RfcFieldInfo parameterInfo, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #5
0
 public static RfcRc GetFunctionParameterCount(FunctionDescriptionHandle descriptionHandle, out int count,
                                               out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #6
0
 public static RfcRc GetBytes(IDataContainerHandle containerHandle, string name, out byte[] buffer, out
                              RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #7
0
 public static TypeDescriptionHandle GetTypeDescription(IDataContainerHandle dataContainer,
                                                        out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #8
0
파일: Api.cs 프로젝트: fw2568/YaNco
 public static RfcRc SetBytes(IDataContainerHandle containerHandle, string name, byte[] buffer, uint bufferLength, out
                              RfcErrorInfo errorInfo)
 {
     return(Interopt.RfcSetBytes(containerHandle.Ptr, name, buffer, bufferLength, out errorInfo));
 }
예제 #9
0
파일: Api.cs 프로젝트: fw2568/YaNco
        public static RfcRc GetBytes(IDataContainerHandle containerHandle, string name, out byte[] buffer, out
                                     RfcErrorInfo errorInfo)
        {
            var tempBuffer = new byte[255];
            var rc         = Interopt.RfcGetXString(containerHandle.Ptr, name, tempBuffer, 255, out var bufferLength, out errorInfo);

            if (rc != RfcRc.RFC_BUFFER_TOO_SMALL)
            {
                buffer = new byte[bufferLength];
                Array.Copy(tempBuffer, buffer, bufferLength);

                return(rc);
            }

            tempBuffer = new byte[bufferLength];
            rc         = Interopt.RfcGetXString(containerHandle.Ptr, name, tempBuffer, bufferLength, out _, out errorInfo);
            buffer     = new byte[bufferLength];
            tempBuffer.CopyTo(buffer, 0);

            return(rc);
        }
예제 #10
0
파일: Api.cs 프로젝트: fw2568/YaNco
 public static RfcRc SetTimeString(IDataContainerHandle containerHandle, string name, string value, out
                                   RfcErrorInfo errorInfo)
 {
     return(Interopt.RfcSetTime(containerHandle.Ptr, name, value.ToCharArray(0, 6), out errorInfo));
 }
예제 #11
0
파일: Api.cs 프로젝트: fw2568/YaNco
        public static RfcRc GetTimeString(IDataContainerHandle containerHandle, string name, out string value, out
                                          RfcErrorInfo errorInfo)
        {
            var buffer = new char[6];
            var rc     = Interopt.RfcGetTime(containerHandle.Ptr, name, buffer, out errorInfo);

            value = new string(buffer);
            return(rc);
        }
예제 #12
0
파일: Api.cs 프로젝트: fw2568/YaNco
 public static RfcRc GetLong(IDataContainerHandle containerHandle, string name, out long value, out
                             RfcErrorInfo errorInfo)
 {
     return(Interopt.RfcGetInt8(containerHandle.Ptr, name, out value, out errorInfo));
 }
예제 #13
0
파일: Api.cs 프로젝트: fw2568/YaNco
 public static RfcRc SetInt(IDataContainerHandle containerHandle, string name, int value, out
                            RfcErrorInfo errorInfo)
 {
     return(Interopt.RfcSetInt(containerHandle.Ptr, name, value, out errorInfo));
 }
예제 #14
0
파일: Api.cs 프로젝트: fw2568/YaNco
        public static RfcRc GetString(IDataContainerHandle containerHandle, string name, out string value, out
                                      RfcErrorInfo errorInfo)
        {
            var buffer = new char[61];
            var rc     = Interopt.RfcGetString(containerHandle.Ptr, name, buffer, 61, out var stringLength, out errorInfo);

            if (rc != RfcRc.RFC_BUFFER_TOO_SMALL)
            {
                value = new string(buffer, 0, (int)stringLength);
                return(rc);
            }

            buffer = new char[stringLength + 1];
            rc     = Interopt.RfcGetString(containerHandle.Ptr, name, buffer, stringLength + 1, out _, out errorInfo);
            value  = new string(buffer, 0, (int)stringLength);
            return(rc);
        }
예제 #15
0
 public static RfcRc GetTimeString(IDataContainerHandle containerHandle, string name, out string value, out
                                   RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #16
0
파일: Api.cs 프로젝트: fw2568/YaNco
        public static FunctionDescriptionHandle GetFunctionDescription(ConnectionHandle connectionHandle,
                                                                       string functionName, out RfcErrorInfo errorInfo)
        {
            var ptr = Interopt.RfcGetFunctionDesc(connectionHandle.Ptr, functionName, out errorInfo);

            return(ptr == IntPtr.Zero ? null : new FunctionDescriptionHandle(ptr));
        }
예제 #17
0
 public static FunctionDescriptionHandle GetFunctionDescription(ConnectionHandle connectionHandle,
                                                                string functionName, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #18
0
파일: Api.cs 프로젝트: fw2568/YaNco
 public static RfcRc GetFunctionName(FunctionDescriptionHandle descriptionHandle, out string functionName,
                                     out RfcErrorInfo errorInfo)
 {
     return(Interopt.RfcGetFunctionName(descriptionHandle.Ptr, out functionName, out errorInfo));
 }
예제 #19
0
 public static RfcRc GetFunctionName(FunctionDescriptionHandle descriptionHandle, out string functionName,
                                     out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #20
0
 public static void AllowStartOfPrograms(ConnectionHandle connectionHandle, StartProgramDelegate callback, out
                                         RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #21
0
 public static RfcRc GetTypeFieldCount(TypeDescriptionHandle descriptionHandle, out int count,
                                       out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #22
0
 public static RfcRc GetTableRowCount(TableHandle table, out int count, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #23
0
 public static FunctionHandle CreateFunction(FunctionDescriptionHandle descriptionHandle,
                                             out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #24
0
 public static StructureHandle AppendTableRow(TableHandle table, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #25
0
 public static ConnectionHandle OpenConnection(IDictionary <string, string> connectionParams,
                                               out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #26
0
 public static RfcRc MoveToFirstTableRow(TableHandle table, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #27
0
 public static RfcRc Invoke(ConnectionHandle connectionHandle, FunctionHandle functionHandle,
                            out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #28
0
 public static RfcRc SetInt(IDataContainerHandle containerHandle, string name, int value, out
                            RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #29
0
 public static TableHandle CloneTable(TableHandle tableHandle, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
예제 #30
0
파일: Api.cs 프로젝트: fw2568/YaNco
 public static RfcRc MoveToFirstTableRow(TableHandle table, out RfcErrorInfo errorInfo)
 {
     return(Interopt.RfcMoveToFirstRow(table.Ptr, out errorInfo));
 }