Extract RGB from buf.puixels

How can i extract the blue value for example from the RGB of a specific pixel.
//After fetching the pixel
uint16_t p = lockInfo.pixels[y * nPitch + x];
// What should i do here?
Thanks Maoz.
//After fetching the pixel
uint16_t p = lockInfo.pixels[y * nPitch + x];
// What should i do here?
Thanks Maoz.