# Re: sizeof( bit?)

**URL:** <https://www.ruby-forum.com/t/re-sizeof-bit/87295>\
**Category:** GNU Radio\
**Created:** [March 1, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/re-sizeof-bit/87295 "2007-03-01T14:40:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Achilleas\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@Achilleas\_A](https://www.ruby-forum.com/u/Achilleas_A)\
**Post date:** [March 1, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/re-sizeof-bit/87295/1 "2007-03-01T14:40:31Z")

</div>

Vincenzo,

I don’t think this is possible. The smallest size is a byte,  
so you can think of your bits being either unpacket bytes  
(ie having values 0 or 1), or packed bytes (in which case  
you have to unpack them inside your new block).  
If I were you I would go with the former method, since  
the packet\_to\_unpacked block exists already.

Achilleas

* * *

just a quick question, I need to tell the constructor of my first gr  
block  
to accept a bit by bit input…

I should call sizeof( what? )

thanks

sorry for bothering for such a trivial thing but I haven’t found an  
example  
of this yet…

– Vincenzo P.
