octane-0.1.0: library/Octane/Types/CacheProperty.hs
module Octane.Types.CacheProperty (CacheProperty(..)) where
import Octane.Core
import Octane.Types.Int32LE
data CacheProperty = NewCacheProperty
{ cachePropertyIndex :: Int32LE
, cachePropertyTag :: Int32LE
} deriving (Show)
instance Binary CacheProperty where
get = do
index <- get
tag <- get
return NewCacheProperty
{ cachePropertyIndex = index
, cachePropertyTag = tag
}
put cacheProperty = do
cacheProperty & cachePropertyIndex & put
cacheProperty & cachePropertyTag & put