/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.21
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


Class name: Writeable extends: SwigProxy fields: swigCPtrForWriteable, swigCMemoryOwn {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    swigCMemoryOwn := newCMemoryOwn.
    swigCPtrForWriteable := newCPtr.
  ]

  Method [ getCPtrForWriteable
    ^swigCPtrForWriteable
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForWriteable ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      CslNI cslNI_delete_Writeable: swigCPtrForWriteable.
    ].
    swigCPtrForWriteable := 0.
  ]

  Function[ getCPtr: obj
     obj isNil ifTrue:[^0].
     ^obj getCPtrForWriteable
  ]

  Method [ writeBuffer: inputBuffer 
    CslNI cslNI_Writeable_writeBuffer: swigCPtrForWriteable with: (Buffer getCPtr: inputBuffer)
  ]

  Function [ new
    ^self fromPointer: (CslNI cslNI_new_Writeable) memoryOwn: true
  ]

}
