Add constructor that takes a byte buffer