Sha256: 3af6af7eac63bda5890b572ad6c2d7217dd32a3487a963870adc5e349089056c

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

module Gogyou
  module TypeSpec
    SIZEOF_CHAR     = [0].pack("C").bytesize
    SIZEOF_SHORT    = [0].pack("S!").bytesize
    SIZEOF_INT      = [0].pack("I!").bytesize
    SIZEOF_LONG     = [0].pack("L!").bytesize
    SIZEOF_LONGLONG = [0].pack("Q!").bytesize
    SIZEOF_SIZE_T   = [nil].pack("P").bytesize
    SIZEOF_FLOAT    = [0].pack("F").bytesize
    SIZEOF_DOUBLE   = [0].pack("D").bytesize
    SIZEOF_INTPTR_T = SIZEOF_UINTPTR_T = SIZEOF_SIZE_T
  end

  include TypeSpec
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gogyou-0.2.3 lib/gogyou/typespec.rb