git/GitIndexerStatsStructure.st
author vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
Wed, 19 Sep 2012 01:08:21 +0000
changeset 8 4275f357d3e8
parent 5 57c20a77e549
child 9 2783c9882d30
permissions -rw-r--r--
- API fixes, more to come

"{ Package: 'stx:libscm/git' }"

GitStructure subclass:#GitIndexerStatsStructure
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'SCM-Git-Internal-Structures'
!


!GitIndexerStatsStructure class methodsFor:'accessing'!

libraryName

    OperatingSystem isUNIXlike ifTrue:[^'libgit2.so'].

    OperatingSystem isMSWINDOWSlike ifTrue:[^'git2.dll'].

    self error:'Library name for host OS is not known'
!

structSize
    "Returns size of undelaying structure in bytes"

    ^12
! !

!GitIndexerStatsStructure methodsFor:'accessing'!

processed
    "Returns unsigned 
		int32"

    ^self longAt:1 + 4
!

processed: value

    self longAt:1 + 4 put:value
!

received
    "Returns unsigned 
		int32"

    ^self longAt:1 + 8
!

received: value

    self longAt:1 + 8 put:value
!

total
    "Returns unsigned 
		int32"

    ^self longAt:1 + 0
!

total: value

    self longAt:1 + 0 put:value
! !

!GitIndexerStatsStructure class methodsFor:'documentation'!

version_SVN
    ^ '$Id::                                                                                                                        $'
! !