This code
\documentclass{article}
\usepackage{bytefield}
\begin{document}
\begin{bytefield}[leftcurly=.,leftcurlyspace=0pt]{32}
\begin{leftwordgroup}{0}
\wordbox{1}{\the\height}
\end{leftwordgroup} \\
\begin{leftwordgroup}{\raisebox{\totalheight}4}
\wordbox{2}{\the\height}
\end{leftwordgroup} \\
\begin{leftwordgroup}{\raisebox{6ex}{12}}
\wordbox{2}{\the\height}
\end{leftwordgroup}
\end{bytefield}
\end{document}
results in

I'd like to get the 0 and the 4 left word groups to be vertically aligned with the top of their corresponding wordboxes. However, the only way I've found to do that is to trial and error it with \raisebox{6ex}. \height and \totalheight seem to refer to the height of the text in the group. leftwordgroup doesn't make \height available the same way wordbox and bitbox does.
Is there a more precise way to specify the vertical alignment of the left wordgroup?
Update
Thanks for taking the time to help me out with this.
When this was applied to a more sophisticated use of bytefield, it's a bit off.
\documentclass{standalone}
\usepackage{bytefield}
\usepackage{stackengine}
\newcommand\topwg[2]{%
\makebox[3ex][l]{\makebox[2ex][r]{\tiny{#1}}}\belowbaseline[-.3\ht\strutbox]{#2}
}
\begin{document}
\begin{bytefield}[leftcurly=.,leftcurlyspace=0pt]{32}
\bitheader{0,8,16,24} \\
\topwg{0}{\begin{leftwordgroup}{}
\begin{rightwordgroup}{Standard Header}
\wordbox{1}{\the\height}
\end{rightwordgroup}
\end{leftwordgroup}} \\
\topwg{4}{\begin{leftwordgroup}{}
\wordbox{2}{\the\height}
\end{leftwordgroup}} \\
\topwg{12}{\begin{leftwordgroup}{}
\wordbox{2}{\the\height}
\end{leftwordgroup}}
\end{bytefield}
\end{document}

Again, thanks a lot for your help.

-.3modifier is specified. I worked out how to keep the\bitheaderfrom being shifted to the left. – Joe Doyle Jan 15 '14 at 20:28