Langton, Algernon, active 1808-1830, Captain Assistant Quartermaster General in Portugal