At Thu, 11 Mar 2021 04:12:57 +0000, "[email protected]" <[email protected]> wrote in > From: Kyotaro Horiguchi <[email protected]> > > Right. So something like this? > > > > unsigned char p; > > > > p = buf + *cursor; > > result = (uint32) (*p << 24) + (*(p + 1)) << 16 + ...); > > Yes, that would work (if p is a pointer), but I think memcpy() is enough like > pqGetInt() does.
On second thought, memcpy onto a local variable doesn't harm. I agreed to you. regards. -- Kyotaro Horiguchi NTT Open Source Software Center
