Sha256: 1b6770295a9b6b8504ad347750d0355bdc247132f8717ed4bf09da51ad866e6f

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 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

3 entries across 3 versions & 1 rubygems

Version Path
gogyou-0.2.2 lib/gogyou/typespec.rb
gogyou-0.2.1 lib/gogyou/typespec.rb
gogyou-0.2 lib/gogyou/typespec.rb