How to read color values of the current channels?

Based on this How to get access to pixel data of the active layer? - #20 by Denyoze discussion, does not look like its accessible.