Sha256: 612e161ff4dc5d91b00fa42bf8bb01fdd0f2cf1960fd9e89ea89de6ac260e61c

Contents?: true

Size: 87 Bytes

Versions: 3

Compression:

Stored size: 87 Bytes

Contents

require "ffi"

class FFI::AbstractMemory
  def count
    size.div(type_size)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
plaything-1.1.1 lib/plaything/monkey_patches/ffi.rb
plaything-1.1.0 lib/plaything/monkey_patches/ffi.rb
plaything-1.0.0 lib/plaything/monkey_patches/ffi.rb