File: README

package info (click to toggle)
clearsilver 0.10.5-1.4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,272 kB
  • ctags: 3,138
  • sloc: ansic: 24,586; python: 4,233; sh: 2,502; cs: 1,429; ruby: 819; java: 735; makefile: 603; perl: 120; lisp: 34; sql: 21
file content (37 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#################################
#
# C# Clearsilver wrapper
#
# David Jeske
#

This wrapper was developed using the Mono project's C# implementation.
It isn't done, and it hasn't yet been tested with the MS C#
implementation, however, in theory it should work. Here are some salient
ideas behind this implementation:

- I don't use IntPtr, because it is basically a void* that
  removes type information and begs for coredumps to occur later.

- I also don't use data marshaling for aggregate C-types. Instead I
  merely access the structure members directly from C# unsafe code, just
  like you would if this was C code. 

- The only data which is marshalled is function arguments and data which
  is pulled out of or put into C-structures.

- There are many things still todo before this is a fully working
  module, but the basics are there.


TODO:

- more tests (look at ruby/test/hdftest.rb for an example)
- do something better about mapping hdferror to exceptions
- recheck the function prototypes to make sure I'm handling all
  arguments
- handle next(), prev()
- make iterator for child nodes
- allow registration of upload callbacks and data-formatters from C#
- open up access to other parts of cgi and util
- sample code for using inside mod_mono, includign CSPage.cs