ffi-gdal 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,89 +3,85 @@ require_relative '../../ext/cpl_error_symbols'
3
3
 
4
4
  module FFI
5
5
  module GDAL
6
- module CPLError
7
- extend FFI::Library
8
- ffi_lib 'gdal'
9
6
 
10
- #------------------------------------------------------------------------
11
- # Defines
12
- #------------------------------------------------------------------------
13
- None = 0
14
- AppDefined = 1
15
- OutOfMemory = 2
16
- FileIO = 3
17
- OpenFailed = 4
18
- IllegalArg = 5
19
- NotSupported = 6
20
- AssertionFailed = 7
21
- NoWriteAccess = 8
22
- UserInterrupt = 9
23
- ObjectNull = 10
7
+ #------------------------------------------------------------------------
8
+ # Defines
9
+ #------------------------------------------------------------------------
10
+ None = 0
11
+ AppDefined = 1
12
+ OutOfMemory = 2
13
+ FileIO = 3
14
+ OpenFailed = 4
15
+ IllegalArg = 5
16
+ NotSupported = 6
17
+ AssertionFailed = 7
18
+ NoWriteAccess = 8
19
+ UserInterrupt = 9
20
+ ObjectNull = 10
24
21
 
25
- def cpla_assert(exp)
26
- end
27
- def validate_pointer_err(ce_failure)
28
- end
29
- def validate_pointer0(ptr, func)
30
- end
31
- def validate_pointer1(ptr, func, rc)
32
- end
22
+ def cpla_assert(exp)
23
+ end
24
+ def validate_pointer_err(ce_failure)
25
+ end
26
+ def validate_pointer0(ptr, func)
27
+ end
28
+ def validate_pointer1(ptr, func, rc)
29
+ end
33
30
 
34
- #------------------------------------------------------------------------
35
- # Enums
36
- #------------------------------------------------------------------------
37
- CPLErr = enum :CE_None, 0,
38
- :CE_Debug, 1,
39
- :CE_Warning, 2,
40
- :CE_Failure, 3,
41
- :CE_Fatal, 4
31
+ #------------------------------------------------------------------------
32
+ # Enums
33
+ #------------------------------------------------------------------------
34
+ CPLErr = enum :CE_None, 0,
35
+ :CE_Debug, 1,
36
+ :CE_Warning, 2,
37
+ :CE_Failure, 3,
38
+ :CE_Fatal, 4
42
39
 
43
- callback :CPLErrorHandler, [CPLErr, :int, :string], :void
40
+ callback :CPLErrorHandler, [CPLErr, :int, :string], :void
44
41
 
45
- #------------------------------------------------------------------------
46
- # Functions
47
- #------------------------------------------------------------------------
48
- attach_function :CPLError, [CPLErr, :int, :string], :void
49
- attach_function :CPLErrorV, [CPLErr, :int, :string, :pointer], :void
50
- attach_function :CPLEmergencyError, [:void], :void
51
- attach_function :CPLErrorReset, [:void], :void
42
+ #------------------------------------------------------------------------
43
+ # Functions
44
+ #------------------------------------------------------------------------
45
+ attach_function :CPLError, [CPLErr, :int, :string], :void
46
+ attach_function :CPLErrorV, [CPLErr, :int, :string, :pointer], :void
47
+ #attach_function :CPLEmergencyError, [:void], :void
48
+ attach_function :CPLErrorReset, [:void], :void
52
49
 
53
- attach_function :CPLGetLastErrorNo, [:void], :int
54
- attach_function :CPLGetLastErrorType, [:void], CPLErr
55
- attach_function :CPLGetLastErrorMsg, [:void], :string
50
+ attach_function :CPLGetLastErrorNo, [:void], :int
51
+ attach_function :CPLGetLastErrorType, [:void], CPLErr
52
+ attach_function :CPLGetLastErrorMsg, [:void], :string
56
53
 
57
- attach_function :CPLGetErrorHandlerUserData, [:void], :pointer
58
- #attach_function :CPLErrorSetState,
59
- #[CPLErr, :int, :string],
60
- #:void
61
- attach_function :CPLCleanupErrorMutex, [:void], :void
62
- attach_function :CPLLoggingErrorHandler,
63
- [CPLErr, :int, :string],
64
- :void
65
- attach_function :CPLDefaultErrorHandler,
66
- [CPLErr, :int, :string],
67
- :void
68
- attach_function :CPLQuietErrorHandler,
69
- [CPLErr, :int, :string],
70
- :void
71
- attach_function :CPLTurnFailureIntoWarning, [:int], :void
54
+ #attach_function :CPLGetErrorHandlerUserData, [:void], :pointer
55
+ #attach_function :CPLErrorSetState,
56
+ #[CPLErr, :int, :string],
57
+ #:void
58
+ #attach_function :CPLCleanupErrorMutex, [:void], :void
59
+ attach_function :CPLLoggingErrorHandler,
60
+ [CPLErr, :int, :string],
61
+ :void
62
+ attach_function :CPLDefaultErrorHandler,
63
+ [CPLErr, :int, :string],
64
+ :void
65
+ attach_function :CPLQuietErrorHandler,
66
+ [CPLErr, :int, :string],
67
+ :void
68
+ #attach_function :CPLTurnFailureIntoWarning, [:int], :void
72
69
 
73
- attach_function :CPLSetErrorHandler,
74
- [:CPLErrorHandler],
75
- :CPLErrorHandler
76
- attach_function :CPLSetErrorHandlerEx,
77
- [:CPLErrorHandler, :pointer],
78
- :CPLErrorHandler
79
- attach_function :CPLPushErrorHandler,
80
- [:CPLErrorHandler],
81
- :void
82
- attach_function :CPLPushErrorHandlerEx,
83
- [:CPLErrorHandler, :pointer],
84
- :void
85
- attach_function :CPLPopErrorHandler, [:void], :void
70
+ attach_function :CPLSetErrorHandler,
71
+ [:CPLErrorHandler],
72
+ :CPLErrorHandler
73
+ #attach_function :CPLSetErrorHandlerEx,
74
+ # [:CPLErrorHandler, :pointer],
75
+ # :CPLErrorHandler
76
+ attach_function :CPLPushErrorHandler,
77
+ [:CPLErrorHandler],
78
+ :void
79
+ #attach_function :CPLPushErrorHandlerEx,
80
+ # [:CPLErrorHandler, :pointer],
81
+ # :void
82
+ attach_function :CPLPopErrorHandler, [:void], :void
86
83
 
87
- attach_function :CPLDebug, [:string, :string], :void
88
- attach_function :_CPLAssert, [:string, :string, :int], :void
89
- end
84
+ attach_function :CPLDebug, [:string, :string], :void
85
+ attach_function :_CPLAssert, [:string, :string, :int], :void
90
86
  end
91
87
  end
@@ -1,113 +1,106 @@
1
- require 'ffi'
2
-
3
-
4
1
  module FFI
5
2
  module GDAL
6
- module CPLString
7
- extend FFI::Library
8
- ffi_lib 'gdal'
9
-
10
- #------------------------------------------------------------------------
11
- # Defines
12
- #------------------------------------------------------------------------
13
- CSLT_HONOURSTRINGS = 0x0001
14
- CSLT_ALLOWEMPTYTOKENS = 0x0002
15
- CSLT_PRESERVEQUOTES = 0x0004
16
- CSLT_PRESERVEESCAPES = 0x0008
17
- CSLT_STRIPLEADSPACES = 0x0010
18
- CSLT_STRIPENDSPACES = 0x0020
19
-
20
- CPLES_BackslashQuotable = 0
21
- CPLES_XML = 1
22
- CPLES_URL = 2
23
- CPLES_SQL = 3
24
- CPLES_CSV = 4
25
- CPLES_XML_BUT_QUOTES = 5
26
-
27
- CPL_ENC_LOCALE = ''
28
- CPL_ENC_UTF8 = 'UTF-8'
29
- CPL_ENC_UTF16 = 'UTF-16'
30
- CPL_ENC_UCS2 = 'UCS-2'
31
- CPL_ENC_UCS4 = 'UCS-4'
32
- CPL_ENC_ASCII = 'ASCII'
33
- CPL_ENC_ISO8859_1 = 'ISO-8859-1'
34
-
35
- typedef :string, :CPLString
36
-
37
- #------------------------------------------------------------------------
38
- # Enums
39
- #------------------------------------------------------------------------
40
- CPLValueType = enum :CPL_VALUE_STRING,
41
- :CPL_VALUE_REAL,
42
- :CPL_VALUE_INTEGER
43
-
44
- #------------------------------------------------------------------------
45
- # Functions
46
- #------------------------------------------------------------------------
47
- attach_function :CSLAddString, %i[pointer string], :pointer
48
- attach_function :CSLCount, %i[pointer], :int
49
- attach_function :CSLGetField, %i[pointer int], :string
50
- attach_function :CSLDestroy, %i[pointer], :void
51
- attach_function :CSLDuplicate, %i[pointer], :pointer
52
- attach_function :CSLMerge, %i[pointer pointer], :pointer
53
- attach_function :CSLTokenizeString, %i[string], :pointer
54
- attach_function :CSLTokenizeStringComplex,
55
- %i[string string int int],
56
- :pointer
57
- attach_function :CSLTokenizeString2, %i[string string int], :pointer
58
- attach_function :CSLPrint, %i[pointer pointer], :int
59
- attach_function :CSLLoad, %i[string], :pointer
60
- attach_function :CSLLoad2, %i[string int int pointer], :pointer
61
- attach_function :CSLSave, %i[pointer string], :int
62
- attach_function :CSLInsertStrings, %i[pointer int pointer], :pointer
63
- attach_function :CSLInsertString, %i[pointer int string], :pointer
64
- attach_function :CSLRemoveStrings, %i[pointer int int pointer], :pointer
65
- attach_function :CSLFindString, %i[pointer string], :int
66
- #attach_function :CSLFindStringCaseSensitive, %i[pointer string], :int
67
- attach_function :CSLPartialFindString, %i[pointer string], :int
68
- attach_function :CSLFindName, %i[pointer string], :int
69
-
70
- attach_function :CSLTestBoolean, %i[string], :int
71
- attach_function :CSLFetchBoolean, %i[pointer string int], :int
72
-
73
- attach_function :CPLSPrintf, %i[string varargs], :string
74
- attach_function :CSLAppendPrintf, %i[pointer string varargs], :pointer
75
- attach_function :CPLVASPrintf, %i[pointer string varargs], :pointer
76
- attach_function :CPLParseNameValue, %i[string pointer], :string
77
-
78
- attach_function :CSLFetchNameValue, %i[pointer string], :string
79
- attach_function :CSLFetchNameValueDef, %i[pointer string string], :string
80
- attach_function :CSLFetchNameValueMultiple, %i[pointer string], :pointer
81
- attach_function :CSLAddNameValue, %i[pointer string string], :pointer
82
- attach_function :CSLSetNameValue, %i[pointer string string], :pointer
83
- attach_function :CSLSetNameValueSeparator, %i[pointer string], :void
84
-
85
- attach_function :CPLEscapeString, %i[string int int], :string
86
- attach_function :CPLUnescapeString, %i[string pointer int], :string
87
- attach_function :CPLBinaryToHex, %i[int pointer], :string
88
- attach_function :CPLHexToBinary, %i[string pointer], :pointer
89
- attach_function :CPLBase64Encode, %i[int pointer], :string
90
- attach_function :CPLBase64DecodeInPlace, %i[pointer], :int
91
-
92
- attach_function :CPLGetValueType, %i[string], CPLValueType
93
- attach_function :CPLStrlcpy, %i[string string size_t], :size_t
94
- attach_function :CPLStrlcat, %i[string string size_t], :size_t
95
- attach_function :CPLStrnlen, %i[string size_t], :size_t
96
- attach_function :CPLEncodingCharSize, %i[string], :int
97
-
98
- attach_function :CPLClearRecodeWarningFlags, [], :void
99
- attach_function :CPLRecode, %i[string string string], :string
100
- attach_function :CPLRecodeFromWChar, %i[string string string], :string
101
- attach_function :CPLRecodeToWChar, %i[string string string], :string
102
-
103
- attach_function :CPLIsUTF8, %i[string int], :int
104
- attach_function :CPLForceToASCII, %i[string int char], :string
105
- attach_function :CPLStrlenUTF8, %i[string], :int
106
3
 
107
- #attach_function :CPLOPrintf, %i[string varargs], :CPLString
108
- #attach_function :CPLOvPrintf, %i[string varargs], :CPLString
109
- #attach_function :CPLURLGetValue, %i[string string], :CPLString
110
- #attach_function :CPLURLAddKVP, %i[string string string], :CPLString
111
- end
4
+ #------------------------------------------------------------------------
5
+ # Defines
6
+ #------------------------------------------------------------------------
7
+ CSLT_HONOURSTRINGS = 0x0001
8
+ CSLT_ALLOWEMPTYTOKENS = 0x0002
9
+ CSLT_PRESERVEQUOTES = 0x0004
10
+ CSLT_PRESERVEESCAPES = 0x0008
11
+ CSLT_STRIPLEADSPACES = 0x0010
12
+ CSLT_STRIPENDSPACES = 0x0020
13
+
14
+ CPLES_BackslashQuotable = 0
15
+ CPLES_XML = 1
16
+ CPLES_URL = 2
17
+ CPLES_SQL = 3
18
+ CPLES_CSV = 4
19
+ CPLES_XML_BUT_QUOTES = 5
20
+
21
+ CPL_ENC_LOCALE = ''
22
+ CPL_ENC_UTF8 = 'UTF-8'
23
+ CPL_ENC_UTF16 = 'UTF-16'
24
+ CPL_ENC_UCS2 = 'UCS-2'
25
+ CPL_ENC_UCS4 = 'UCS-4'
26
+ CPL_ENC_ASCII = 'ASCII'
27
+ CPL_ENC_ISO8859_1 = 'ISO-8859-1'
28
+
29
+ typedef :string, :CPLString
30
+
31
+ #------------------------------------------------------------------------
32
+ # Enums
33
+ #------------------------------------------------------------------------
34
+ CPLValueType = enum :CPL_VALUE_STRING,
35
+ :CPL_VALUE_REAL,
36
+ :CPL_VALUE_INTEGER
37
+
38
+ #------------------------------------------------------------------------
39
+ # Functions
40
+ #------------------------------------------------------------------------
41
+ attach_function :CSLAddString, %i[pointer string], :pointer
42
+ attach_function :CSLCount, %i[pointer], :int
43
+ attach_function :CSLGetField, %i[pointer int], :string
44
+ attach_function :CSLDestroy, %i[pointer], :void
45
+ attach_function :CSLDuplicate, %i[pointer], :pointer
46
+ attach_function :CSLMerge, %i[pointer pointer], :pointer
47
+ attach_function :CSLTokenizeString, %i[string], :pointer
48
+ attach_function :CSLTokenizeStringComplex,
49
+ %i[string string int int],
50
+ :pointer
51
+ attach_function :CSLTokenizeString2, %i[string string int], :pointer
52
+ attach_function :CSLPrint, %i[pointer pointer], :int
53
+ attach_function :CSLLoad, %i[string], :pointer
54
+ attach_function :CSLLoad2, %i[string int int pointer], :pointer
55
+ attach_function :CSLSave, %i[pointer string], :int
56
+ attach_function :CSLInsertStrings, %i[pointer int pointer], :pointer
57
+ attach_function :CSLInsertString, %i[pointer int string], :pointer
58
+ attach_function :CSLRemoveStrings, %i[pointer int int pointer], :pointer
59
+ attach_function :CSLFindString, %i[pointer string], :int
60
+ #attach_function :CSLFindStringCaseSensitive, %i[pointer string], :int
61
+ attach_function :CSLPartialFindString, %i[pointer string], :int
62
+ attach_function :CSLFindName, %i[pointer string], :int
63
+
64
+ attach_function :CSLTestBoolean, %i[string], :int
65
+ attach_function :CSLFetchBoolean, %i[pointer string int], :int
66
+
67
+ attach_function :CPLSPrintf, %i[string varargs], :string
68
+ attach_function :CSLAppendPrintf, %i[pointer string varargs], :pointer
69
+ attach_function :CPLVASPrintf, %i[pointer string varargs], :pointer
70
+ attach_function :CPLParseNameValue, %i[string pointer], :string
71
+
72
+ attach_function :CSLFetchNameValue, %i[pointer string], :string
73
+ attach_function :CSLFetchNameValueDef, %i[pointer string string], :string
74
+ attach_function :CSLFetchNameValueMultiple, %i[pointer string], :pointer
75
+ attach_function :CSLAddNameValue, %i[pointer string string], :pointer
76
+ attach_function :CSLSetNameValue, %i[pointer string string], :pointer
77
+ attach_function :CSLSetNameValueSeparator, %i[pointer string], :void
78
+
79
+ attach_function :CPLEscapeString, %i[string int int], :string
80
+ attach_function :CPLUnescapeString, %i[string pointer int], :string
81
+ attach_function :CPLBinaryToHex, %i[int pointer], :string
82
+ attach_function :CPLHexToBinary, %i[string pointer], :pointer
83
+ #attach_function :CPLBase64Encode, %i[int pointer], :string
84
+ #attach_function :CPLBase64DecodeInPlace, %i[pointer], :int
85
+
86
+ attach_function :CPLGetValueType, %i[string], CPLValueType
87
+ attach_function :CPLStrlcpy, %i[string string size_t], :size_t
88
+ attach_function :CPLStrlcat, %i[string string size_t], :size_t
89
+ attach_function :CPLStrnlen, %i[string size_t], :size_t
90
+ #attach_function :CPLEncodingCharSize, %i[string], :int
91
+
92
+ #attach_function :CPLClearRecodeWarningFlags, [], :void
93
+ attach_function :CPLRecode, %i[string string string], :string
94
+ attach_function :CPLRecodeFromWChar, %i[string string string], :string
95
+ attach_function :CPLRecodeToWChar, %i[string string string], :string
96
+
97
+ attach_function :CPLIsUTF8, %i[string int], :int
98
+ attach_function :CPLForceToASCII, %i[string int char], :string
99
+ #attach_function :CPLStrlenUTF8, %i[string], :int
100
+
101
+ #attach_function :CPLOPrintf, %i[string varargs], :CPLString
102
+ #attach_function :CPLOvPrintf, %i[string varargs], :CPLString
103
+ #attach_function :CPLURLGetValue, %i[string string], :CPLString
104
+ #attach_function :CPLURLAddKVP, %i[string string string], :CPLString
112
105
  end
113
106
  end
@@ -1,119 +1,112 @@
1
- require 'ffi'
2
-
3
-
4
1
  module FFI
5
2
  module GDAL
6
- module CPLVSI
7
- extend ::FFI::Library
8
- ffi_lib 'gdal'
9
3
 
10
- #------------------------------------------------------------------------
11
- # Defines
12
- #------------------------------------------------------------------------
13
- VSI_STAT_EXISTS_FLAG = 0x1
14
- VSI_STAT_NATURE_FLAG = 0x2
15
- VSI_STAT_SIZE_FLAG = 0x4
4
+ #------------------------------------------------------------------------
5
+ # Defines
6
+ #------------------------------------------------------------------------
7
+ VSI_STAT_EXISTS_FLAG = 0x1
8
+ VSI_STAT_NATURE_FLAG = 0x2
9
+ VSI_STAT_SIZE_FLAG = 0x4
16
10
 
17
- #------------------------------------------------------------------------
18
- # Typedefs
19
- #------------------------------------------------------------------------
20
- # Dupes from cpl_conv.rb. Can't figure out how to get these defined
21
- # from just including the module...
22
- typedef :long_long, :GIntBig
23
- typedef :ulong_long, :GUIntBig
11
+ #------------------------------------------------------------------------
12
+ # Typedefs
13
+ #------------------------------------------------------------------------
14
+ # Dupes from cpl_conv.rb. Can't figure out how to get these defined
15
+ # from just including the module...
16
+ typedef :long_long, :GIntBig
17
+ typedef :ulong_long, :GUIntBig
24
18
 
25
- typedef :GUIntBig, :vsi_l_offset
26
- callback :VSIWriteFunction, %i[pointer size_t size_t pointer], :pointer
19
+ typedef :GUIntBig, :vsi_l_offset
20
+ callback :VSIWriteFunction, %i[pointer size_t size_t pointer], :pointer
27
21
 
28
- #------------------------------------------------------------------------
29
- # Functions
30
- #------------------------------------------------------------------------
31
- attach_function :VSIFOpen, %i[string string], :pointer
32
- attach_function :VSIFClose, %i[pointer], :int
33
- attach_function :VSIFSeek, %i[pointer long int], :int
34
- attach_function :VSIFTell, %i[pointer], :long
35
- attach_function :VSIRewind, %i[pointer], :void
36
- attach_function :VSIFFlush, %i[pointer], :void
37
- attach_function :VSIFRead, %i[pointer size_t size_t pointer], :size_t
38
- attach_function :VSIFWrite, %i[pointer size_t size_t pointer], :size_t
39
- attach_function :VSIFGets, %i[pointer int pointer], :string
40
- attach_function :VSIFPuts, %i[string pointer], :int
41
- attach_function :VSIFPrintf, %i[pointer string varargs], :int
42
- attach_function :VSIFGetc, %i[pointer], :int
43
- attach_function :VSIFPutc, %i[int pointer], :int
22
+ #------------------------------------------------------------------------
23
+ # Functions
24
+ #------------------------------------------------------------------------
25
+ attach_function :VSIFOpen, %i[string string], :pointer
26
+ attach_function :VSIFClose, %i[pointer], :int
27
+ attach_function :VSIFSeek, %i[pointer long int], :int
28
+ attach_function :VSIFTell, %i[pointer], :long
29
+ attach_function :VSIRewind, %i[pointer], :void
30
+ attach_function :VSIFFlush, %i[pointer], :void
31
+ attach_function :VSIFRead, %i[pointer size_t size_t pointer], :size_t
32
+ attach_function :VSIFWrite, %i[pointer size_t size_t pointer], :size_t
33
+ attach_function :VSIFGets, %i[pointer int pointer], :string
34
+ attach_function :VSIFPuts, %i[string pointer], :int
35
+ attach_function :VSIFPrintf, %i[pointer string varargs], :int
36
+ attach_function :VSIFGetc, %i[pointer], :int
37
+ attach_function :VSIFPutc, %i[int pointer], :int
44
38
 
45
- attach_function :VSIUngetc, %i[int pointer], :int
46
- attach_function :VSIFEof, %i[pointer], :int
47
- attach_function :VSIStat, %i[string pointer], :int
39
+ attach_function :VSIUngetc, %i[int pointer], :int
40
+ attach_function :VSIFEof, %i[pointer], :int
41
+ attach_function :VSIStat, %i[string pointer], :int
48
42
 
49
- attach_function :VSIFOpenL, %i[string string], :pointer
50
- attach_function :VSIFCloseL, %i[pointer], :int
51
- attach_function :VSIFSeekL, %i[pointer vsi_l_offset int], :int
52
- attach_function :VSIFTellL, %i[pointer], :vsi_l_offset
53
- attach_function :VSIRewindL, %i[pointer], :void
54
- attach_function :VSIFReadL, %i[pointer size_t size_t pointer], :size_t
55
- attach_function :VSIFReadMultiRangeL,
56
- %i[int pointer pointer pointer pointer],
57
- :int
58
- attach_function :VSIFWriteL, %i[pointer size_t size_t pointer], :size_t
59
- attach_function :VSIFEofL, %i[pointer], :int
60
- attach_function :VSIFTruncateL, %i[pointer vsi_l_offset], :int
61
- attach_function :VSIFFlushL, %i[pointer], :int
62
- attach_function :VSIFPrintfL, %i[pointer string varargs], :int
63
- attach_function :VSIFPutcL, %i[int pointer], :int
64
- attach_function :VSIIngestFile,
65
- %i[pointer string pointer pointer GIntBig],
66
- :int
67
- attach_function :VSIStatL, %i[string pointer], :int
68
- attach_function :VSIStatExL, %i[string pointer int], :int
43
+ attach_function :VSIFOpenL, %i[string string], :pointer
44
+ attach_function :VSIFCloseL, %i[pointer], :int
45
+ attach_function :VSIFSeekL, %i[pointer vsi_l_offset int], :int
46
+ attach_function :VSIFTellL, %i[pointer], :vsi_l_offset
47
+ attach_function :VSIRewindL, %i[pointer], :void
48
+ attach_function :VSIFReadL, %i[pointer size_t size_t pointer], :size_t
49
+ #attach_function :VSIFReadMultiRangeL,
50
+ # %i[int pointer pointer pointer pointer],
51
+ # :int
52
+ attach_function :VSIFWriteL, %i[pointer size_t size_t pointer], :size_t
53
+ attach_function :VSIFEofL, %i[pointer], :int
54
+ #attach_function :VSIFTruncateL, %i[pointer vsi_l_offset], :int
55
+ attach_function :VSIFFlushL, %i[pointer], :int
56
+ attach_function :VSIFPrintfL, %i[pointer string varargs], :int
57
+ attach_function :VSIFPutcL, %i[int pointer], :int
58
+ #attach_function :VSIIngestFile,
59
+ # %i[pointer string pointer pointer GIntBig],
60
+ # :int
61
+ attach_function :VSIStatL, %i[string pointer], :int
62
+ #attach_function :VSIStatExL, %i[string pointer int], :int
69
63
 
70
- attach_function :VSIIsCaseSensitiveFS, %i[string], :int
71
- attach_function :VSIFGetNativeFileDescriptorL, %i[pointer], :pointer
64
+ #attach_function :VSIIsCaseSensitiveFS, %i[string], :int
65
+ #attach_function :VSIFGetNativeFileDescriptorL, %i[pointer], :pointer
72
66
 
73
- attach_function :VSICalloc, %i[size_t size_t], :pointer
74
- attach_function :VSIMalloc, %i[size_t], :pointer
75
- attach_function :VSIFree, %i[pointer], :void
76
- attach_function :VSIRealloc, %i[pointer size_t], :pointer
77
- attach_function :VSIStrdup, %i[string], :string
78
- attach_function :VSIMalloc2, %i[size_t size_t], :pointer
79
- attach_function :VSIMalloc3, %i[size_t size_t size_t], :pointer
67
+ attach_function :VSICalloc, %i[size_t size_t], :pointer
68
+ attach_function :VSIMalloc, %i[size_t], :pointer
69
+ attach_function :VSIFree, %i[pointer], :void
70
+ attach_function :VSIRealloc, %i[pointer size_t], :pointer
71
+ attach_function :VSIStrdup, %i[string], :string
72
+ attach_function :VSIMalloc2, %i[size_t size_t], :pointer
73
+ attach_function :VSIMalloc3, %i[size_t size_t size_t], :pointer
80
74
 
81
- attach_function :VSIReadDir, %i[string], :pointer
82
- attach_function :VSIReadDirRecursive, %i[string], :pointer
83
- attach_function :VSIMkdir, %i[string long], :int
84
- attach_function :VSIRmdir, %i[string], :int
85
- attach_function :VSIUnlink, %i[string], :int
86
- attach_function :VSIRename, %i[string string], :int
75
+ attach_function :VSIReadDir, %i[string], :pointer
76
+ #attach_function :VSIReadDirRecursive, %i[string], :pointer
77
+ attach_function :VSIMkdir, %i[string long], :int
78
+ attach_function :VSIRmdir, %i[string], :int
79
+ attach_function :VSIUnlink, %i[string], :int
80
+ attach_function :VSIRename, %i[string string], :int
87
81
 
88
- attach_function :VSIStrerror, %i[int], :string
82
+ attach_function :VSIStrerror, %i[int], :string
89
83
 
90
- attach_function :VSIInstallMemFileHandler, [], :void
91
- attach_function :VSIInstallLargeFileHandler, [], :void
92
- attach_function :VSIInstallSubFileHandler, [], :void
93
- attach_function :VSIInstallCurlFileHandler, [], :void
94
- attach_function :VSIInstallCurlStreamingFileHandler, [], :void
95
- attach_function :VSIInstallGZipFileHandler, [], :void
96
- attach_function :VSIInstallZipFileHandler, [], :void
97
- attach_function :VSIInstallStdinHandler, [], :void
98
- attach_function :VSIInstallStdoutHandler, [], :void
99
- attach_function :VSIInstallSparseFileHandler, [], :void
100
- attach_function :VSIInstallTarFileHandler, [], :void
101
- attach_function :VSICleanupFileManager, [], :void
84
+ attach_function :VSIInstallMemFileHandler, [], :void
85
+ attach_function :VSIInstallLargeFileHandler, [], :void
86
+ attach_function :VSIInstallSubFileHandler, [], :void
87
+ #attach_function :VSIInstallCurlFileHandler, [], :void
88
+ #attach_function :VSIInstallCurlStreamingFileHandler, [], :void
89
+ #attach_function :VSIInstallGZipFileHandler, [], :void
90
+ #attach_function :VSIInstallZipFileHandler, [], :void
91
+ #attach_function :VSIInstallStdinHandler, [], :void
92
+ #attach_function :VSIInstallStdoutHandler, [], :void
93
+ #attach_function :VSIInstallSparseFileHandler, [], :void
94
+ #attach_function :VSIInstallTarFileHandler, [], :void
95
+ #attach_function :VSICleanupFileManager, [], :void
102
96
 
103
- attach_function :VSIFileFromMemBuffer,
104
- %i[string pointer vsi_l_offset int],
105
- :pointer
106
- attach_function :VSIGetMemFileBuffer,
107
- %i[string pointer int],
108
- :pointer
109
- # attach_function :VSIStdoutSetRedirection,
110
- # %i[VSIWriteFunction pointer],
111
- # :pointer
97
+ attach_function :VSIFileFromMemBuffer,
98
+ %i[string pointer vsi_l_offset int],
99
+ :pointer
100
+ attach_function :VSIGetMemFileBuffer,
101
+ %i[string pointer int],
102
+ :pointer
103
+ # attach_function :VSIStdoutSetRedirection,
104
+ # %i[VSIWriteFunction pointer],
105
+ # :pointer
112
106
 
113
- attach_function :VSITime, %i[pointer], :ulong
114
- attach_function :VSICTime, %i[ulong], :string
115
- attach_function :VSIGMTime, %i[pointer pointer], :pointer
116
- attach_function :VSILocalTime, %i[pointer pointer], :pointer
117
- end
107
+ attach_function :VSITime, %i[pointer], :ulong
108
+ attach_function :VSICTime, %i[ulong], :string
109
+ attach_function :VSIGMTime, %i[pointer pointer], :pointer
110
+ attach_function :VSILocalTime, %i[pointer pointer], :pointer
118
111
  end
119
112
  end