Menu

#2 Tcl call to transform chunk

1.0
open
None
2014-05-07
2014-05-05
No

Ensure that a good Tcl call exists that can transform a single chunk.

Related

Wiki: SwiftFrameworkRequirements

Discussion

  • Guy Jennings

    Guy Jennings - 2014-05-05

    Are you OK dealing with tcl byte array objects? As produced by Tcl_NewByteArrayObj for example

     
  • Justin M Wozniak

    Since we're using SWIG, we just want to pass simple pointers through. So void* would be best as in commit a70501f..

     

    Last edit: Justin M Wozniak 2014-05-05
  • Justin M Wozniak

    That's void* in the interface code. You can of course use appropriate types in the application libraries. We will do the data handling and casting in the interface code, not in the core CCTW feature sections.

     
  • Justin M Wozniak

    Ok, I would like to sketch the Tcl interface to this. It will consume a void* (chunk from the network) and produce the output list. Where should I look for the closest current interface? Or should I just make a dummy application feature for now?

     
  • Guy Jennings

    Guy Jennings - 2014-05-05

    The only thing is that that code used integers to represent C pointers to tcl - I think a better way would be to use tcl byte array objects instead.

     
  • Justin M Wozniak

    Ah- we are not using SWIG. Ok, we can use Tcl byte array.

     
  • Justin M Wozniak

    Ok, should I be working in the master branch? For the input() and transform() interfaces, I was pasting in from the deleted code.

     
  • Guy Jennings

    Guy Jennings - 2014-05-06

    No - don't use the master branch - it's totally out of date.
    Pasting code should be fine.

     
  • Justin M Wozniak

    Got it, I'm working in the branch 'refactor'.

     
  • Justin M Wozniak

    Ok, the skeleton is in cctwtcltest-3 . I am now working on the step:

    CctwDataChunk *chunk = importChunk(some pointer info);
    

    I will start looking but let me know if you have a plan here.

     
  • Justin M Wozniak

    Now thinking I will create a method CctwDataChunk::setBuffer() to swap in the buffer provided by Swift.

     
  • Justin M Wozniak

    That's in, now looking for transform()...

     

Log in to post a comment.