OneCode is a mailing barcode used by the US Postal Service. Each barcode can be 20, 25, 29, or 31 digits long, depending on the type of ZIP code present. Each digit has four possible states, so one digit represents numbers 0-3.
This is a very thorough manual in PDF format from the post office:SPUSPS-B-3200B001.PDF