<s> from pypy . interpreter . buffer import RWBuffer <EOL> class RawFFIBuffer ( RWBuffer ) : <EOL> def __init__ ( self , datainstance ) : <EOL> self . datainstance = datainstance <EOL> def getlength ( self ) : <EOL> return self . datainstance . getrawsize ( ) <EOL> def getitem ( self , index ) : <EOL> ll_buffer = self . datainstance . ll_buffer <EOL> return ll_buffer [ index ] <EOL> def setitem ( self , index , char ) : <EOL> ll_buffer = self . datainstance . ll_buffer <EOL> ll_buffer [ index ] = char </s>
