Esempio n. 1
0
File: Api.cs Progetto: 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));
 }
Esempio n. 2
0
 public static RfcRc GetFunctionParameterDescription(FunctionDescriptionHandle descriptionHandle,
                                                     int index, out RfcParameterInfo parameterInfo, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
 public static RfcRc GetTable(IDataContainerHandle dataContainer, string name, out TableHandle table,
                              out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public static RfcRc GetTypeFieldDescription(TypeDescriptionHandle descriptionHandle, int index,
                                             out RfcFieldInfo parameterInfo, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
 public static RfcRc GetFunctionParameterCount(FunctionDescriptionHandle descriptionHandle, out int count,
                                               out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 6
0
 public static RfcRc GetBytes(IDataContainerHandle containerHandle, string name, out byte[] buffer, out
                              RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 7
0
 public static TypeDescriptionHandle GetTypeDescription(IDataContainerHandle dataContainer,
                                                        out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 8
0
File: Api.cs Progetto: 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));
 }
Esempio n. 9
0
File: Api.cs Progetto: 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);
        }
Esempio n. 10
0
File: Api.cs Progetto: 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));
 }
Esempio n. 11
0
File: Api.cs Progetto: 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);
        }
Esempio n. 12
0
File: Api.cs Progetto: 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));
 }
Esempio n. 13
0
File: Api.cs Progetto: fw2568/YaNco
 public static RfcRc SetInt(IDataContainerHandle containerHandle, string name, int value, out
                            RfcErrorInfo errorInfo)
 {
     return(Interopt.RfcSetInt(containerHandle.Ptr, name, value, out errorInfo));
 }
Esempio n. 14
0
File: Api.cs Progetto: 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);
        }
Esempio n. 15
0
 public static RfcRc GetTimeString(IDataContainerHandle containerHandle, string name, out string value, out
                                   RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 16
0
File: Api.cs Progetto: 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));
        }
Esempio n. 17
0
 public static FunctionDescriptionHandle GetFunctionDescription(ConnectionHandle connectionHandle,
                                                                string functionName, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 18
0
File: Api.cs Progetto: fw2568/YaNco
 public static RfcRc GetFunctionName(FunctionDescriptionHandle descriptionHandle, out string functionName,
                                     out RfcErrorInfo errorInfo)
 {
     return(Interopt.RfcGetFunctionName(descriptionHandle.Ptr, out functionName, out errorInfo));
 }
Esempio n. 19
0
 public static RfcRc GetFunctionName(FunctionDescriptionHandle descriptionHandle, out string functionName,
                                     out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 20
0
 public static void AllowStartOfPrograms(ConnectionHandle connectionHandle, StartProgramDelegate callback, out
                                         RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 21
0
 public static RfcRc GetTypeFieldCount(TypeDescriptionHandle descriptionHandle, out int count,
                                       out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 22
0
 public static RfcRc GetTableRowCount(TableHandle table, out int count, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 23
0
 public static FunctionHandle CreateFunction(FunctionDescriptionHandle descriptionHandle,
                                             out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 24
0
 public static StructureHandle AppendTableRow(TableHandle table, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 25
0
 public static ConnectionHandle OpenConnection(IDictionary <string, string> connectionParams,
                                               out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 26
0
 public static RfcRc MoveToFirstTableRow(TableHandle table, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 27
0
 public static RfcRc Invoke(ConnectionHandle connectionHandle, FunctionHandle functionHandle,
                            out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 28
0
 public static RfcRc SetInt(IDataContainerHandle containerHandle, string name, int value, out
                            RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 29
0
 public static TableHandle CloneTable(TableHandle tableHandle, out RfcErrorInfo errorInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 30
0
File: Api.cs Progetto: fw2568/YaNco
 public static RfcRc MoveToFirstTableRow(TableHandle table, out RfcErrorInfo errorInfo)
 {
     return(Interopt.RfcMoveToFirstRow(table.Ptr, out errorInfo));
 }